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

Improve error message when attempting to build an image when using war packaging with Maven #24522

scottfrederick opened this issue Dec 15, 2020 · 0 comments


Copy link

@scottfrederick scottfrederick commented Dec 15, 2020

The current error message when running spring-boot:build-image with a war packaged project is:

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.4.1:build-image (default-cli) on project demo: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.4.1:build-image failed: Source must refer to an existing file, got .../demo/target/demo-0.0.1-SNAPSHOT.jar`

which doesn't make it clear that war packing is the root cause of the error.

The documentation should also state more clearly that spring-boot:build-image is not supported with war packaging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant