Cannot find JAR in outputDirectory path when using spring-boot-maven-plugin #3356
Labels
Comments
|
@hellozin Thank you for the report! We are trying to reproduce the issue. |
|
It's a bug (or limitation) in that the output directory is unaccounted for. Note that Jib doesn't use the repackaged Spring Boot fat JAR but a standard thin-JAR packaged by
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment:
Description of the issue:
When I build(or dockerBuild) with below configuration shows up this error message.
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"?)Build success when remove
configuration.outputDirectory.It seems not read outputDirectory configuration if
spring-boot-maven-pluginis used.(I guessed by looking at this code.)
Is it intended behavior?
Expected behavior:
Build success when using
outputDirectoryinspring-boot-maven-pluginSteps to reproduce:
outputDirectorymvn clean package jib:dockerBuildThe text was updated successfully, but these errors were encountered: