Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect initialize Greeting Service #5

Closed
archisova opened this issue Oct 9, 2021 · 1 comment · Fixed by #6
Closed

Incorrect initialize Greeting Service #5

archisova opened this issue Oct 9, 2021 · 1 comment · Fixed by #6

Comments

@archisova
Copy link

Hi, Thomas Vitale!

I noticed that when initializing the Greeting Service project from Chapter 02 - Begin, the link to spring.io starter is incorrectly specified. In your case, the link is https://start.spring.io/starter.tgz (!.tgz), with the key -o greeting-service.zip (!.zip) and when downloading the project, the archive turns out to be broken.
I will offer two solutions:

  1. You can leave the tgz, but then the -o greeting-service.zip parameter must be removed and added at the end of | tar -xzvf -.
    For example for Gradle: curl https://start.spring.io/starter.tgz -d groupId=com.arcticgreetings -d artifactId=greeting-service -d name=greeting-service -d packageName=com.arcticgreetings.greetingservice -d dependencies=web -d javaVersion=16 -d bootVersion=2.5.2 -d type=gradle-project | tar -xzvf -

  2. You can change the starter link by specifying it https://start.spring.io/starter.zip
    For example for Gardle: curl https://start.spring.io/starter.zip -d groupId=com.arcticgreetings -d artifactId=greeting-service -d name=greeting-service -d packageName=com.arcticgreetings.greetingservice -d dependencies=web -d javaVersion=16 -d bootVersion=2.5.2 -d type=gradle-project -o greeting-service.zip

@ThomasVitale
Copy link
Owner

@archisova thanks for reporting the issue. I fixed it and merged it in #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants