jib icon indicating copy to clipboard operation
jib copied to clipboard

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

Open MrLiuzy opened this issue 1 year ago • 2 comments

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

MrLiuzy avatar Oct 31 '24 09:10 MrLiuzy

@MrLiuzy To understand a bit better, do we get the same error when you run mvn clean package jib:build as instructed in the error message?

mpeddada1 avatar Oct 22 '25 19:10 mpeddada1

The error message is generated by this command mvn clean package jib:buildTar

MrLiuzy avatar Oct 29 '25 03:10 MrLiuzy