GoogleContainerTools / GoogleContainerTools/jib

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

Open
#4,334 2 comments 0 reactions 0 assignees View on GitHub
priority:p3 type:bug
Dominant language
Java
Stars
14.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.