getting-started-guides icon indicating copy to clipboard operation
getting-started-guides copied to clipboard

/guides/gs/rest-service: using Maven, eventually causes "Error: Unable to access jarfile"

Open serv opened this issue 10 months ago • 0 comments

Page: https://spring.io/guides/gs/rest-service

After running ./mvnw clean package, running java -jar target/gs-rest-service-0.1.0.jar will cause:

Error: Unable to access jarfile target/gs-rest-service-0.1.0.jar

Instead I should've run: java -jar rest-service-0.0.1-SNAPSHOT.jar

serv avatar Jun 06 '25 06:06 serv