-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
jib-maven-plugin fails if maven-war-plugin "warName" property is set #2206
Comments
Yeah, this is not yet supported. We should read some of the configuration parameters from |
Do you think this is a regression (since it worked in 1.6.1) - or did it just work by accident in earlier versions? |
Ah, yeah, I see in that sense you may think this is a regression. In #2069, we changed the behavior so that Jib unzips a final WAR instead of using an intermediate exploded WAR directory (whose contents may be incomplete compared to a final WAR file). I guess the intermediate exploded WAR directory name wasn't affected by the |
Awesome, thank you! 😻 |
@padyx 2.0.0 has been released with this fix! |
Environment:
Description of the issue:
Between 1.6.1 and 1.7.0, the behaviour of the jib-maven-plugin changed and no longer works if the WAR name is not according to the default (artifactID-version.war), but changed using the "warName" property of the maven-war-plugin.
Expected behavior:
Upgrading the jib-plugin from 1.6.1 to 1.7.0 does not change the result of the build.
Steps to reproduce:
I created a small repository that you can clone: https://github.com/padyx/jib-test-repository
Working configuration (initial repository state):
mvn -Djib.to.auth.username=xxxxx -Djib.to.auth.password=xxxxx -DskipTests -P docker clean package
(Success)Error if upgrading:
jib-maven-plugin
Configuration:Log output:
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:1.7.0:build (default) on project helloworld.ui.html.app.war: Obtaining project build output files failed; make sure you have compiled your project before trying to build the image. (Did you accidentally run "mvn clean jib:build" instead of "mvn clean compile jib:build"?): /home/chakotay/eclipse-workspace/helloworld/helloworld.ui.html.app.war/target/org.eclipse.scout.apps.helloworld.ui.html.war -> [Help 1]
Additional information
The configuration for the war name is: (helloworld.ui.html.app.war POM File)
The text was updated successfully, but these errors were encountered: