GoogleContainerTools / jib

🏗 Build container images for your Java applications.
Apache License 2.0
13.7k stars 1.44k forks source link

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

Open MrLiuzy opened 3 weeks ago

MrLiuzy commented 3 weeks ago

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