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

No main manifest attribute #12

Closed
Leejjon opened this issue Apr 5, 2020 · 2 comments
Closed

No main manifest attribute #12

Leejjon opened this issue Apr 5, 2020 · 2 comments

Comments

@Leejjon
Copy link

Leejjon commented Apr 5, 2020

This project is being used in the following guide:
https://stackify.com/guide-docker-java/#wpautbox_about

When I clone this project, cd into the spring-boot-app directory, I can run it with mvn clean install spring-boot:run

However, the tutorial tells me to run:
java -Dspring.profiles.active=default -jar target/spring-boot-ops.war

The war file that is generated with a maven build will be spring-boot-app-0.0.1-SNAPSHOT.war, but ok I changed that. When running the command:
java -Dspring.profiles.active=default -jar target/spring-boot-app-0.0.1-SNAPSHOT.war

I get:
no main manifest attribute, in target/spring-boot-app-0.0.1-SNAPSHOT.war

@lor6
Copy link

lor6 commented Aug 10, 2020

Hi @Leejjon Please check the readme here: https://github.com/Baeldung/stackify/tree/master/spring-boot-app that clarifies how to run the app. We've informed the stackify team to update the guide as well.

@lor6 lor6 closed this as completed Aug 10, 2020
@Leejjon
Copy link
Author

Leejjon commented Aug 10, 2020

Thank you for updating!

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

No branches or pull requests

2 participants