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

Detect Spring Boot fat-JAR repackaging has an issue if skip the spring-boot repackage by using command line parameter #4334

Open
MrLiuzy opened this issue Oct 31, 2024 · 0 comments

Comments

@MrLiuzy
Copy link

MrLiuzy commented Oct 31, 2024

The issue is that when package springboot project by using command line parameter 'spring-boot.repackage.skip=true', then jib:buildTar also tips '[INFO] Spring Boot repackaging (fat JAR) detected; using the original JAR', and then the build will failed.

The error:
Obtaining project build output files failed; make sure you have packaged your project before trying to build the image. (Did you accidentally run "mvn clean jib:build" instead of "mvn clean package jib:build"?)

Caused by java.nio.file.NoSuchFileException: xxxx.jar.original

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

No branches or pull requests

2 participants