Rozpoczęcie projektu ze Spring Boot za pomocą curl

0

Uczę się z tutoriala Spring Boot and OAuth2 i utknąłem na tym kroku Printscreen z internetu
Mianowicie komenda curla do utworzenia projektu wywala błąd:

u@i3 ~/Dropbox/IdeaProjects/1
$ mkdir ui && cd ui
u@i3 ~/Dropbox/IdeaProjects/1/ui
$ curl https://start.spring.io/starter.tgz -d style=web -d name=simple | tar -xzvf -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    21    0     0  100    21      0     64 --:--:-- --:--:-- --:--:--    64

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
$ curl https://start.spring.io/starter.tgz -d style=web -d name=simple | tar -xzvf -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    21    0     0  100    21      0     69 --:--:-- --:--:-- --:--:--    69

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Proszę o pomoc.
Z góry dziękuję

0

To wygląda po prostu jakby plik się nie pobrał do końca, a tar spróbował już go rozpakować?

e; nawet oddzielne pobranie i oddzielne rozpakowanie działa

1

Spróbuj odpalić samo polecenie przed pipem. Ewentualnie Wejdź na stronkę i sklikaj z GUI albo wygeneruj przez IntelliJ. Nie trać czasu na pie***oły :)

0

Zrobiłem to przez IntelliJ, natomiast metoda przez curla jakoś nie działa. Ten sciągany plik jest pusty.

u@apu:~/tymcz$ curl https://start.spring.io/starter.tgz -d style=web -d name=simple -o starter.tgz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    21    0     0  100    21      0     48 --:--:-- --:--:-- --:--:--    48
u@apu:~/tymcz$ stat starter.tgz 
  File: starter.tgz
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: 805h/2053d	Inode: 24249767    Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/       u)   Gid: ( 1000/       u)
Access: 2020-12-21 16:24:54.532084967 +0100
Modify: 2020-12-21 16:24:54.532084967 +0100
Change: 2020-12-21 16:24:54.532084967 +0100
 Birth: -
u@apu:~/tymcz$

Ale fakt szkoda czasu na te bzdety, skoro można wygodnie przez IDE

1 użytkowników online, w tym zalogowanych: 0, gości: 1