You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I use jib-maven-plugin for many war/jar projects and find it really useful.
But I came across a case of a war project where it doesn't work and I can't tell why. Everything seems to work as the image is correctly sent to the container registry. But the war content (exploded or not) is totally missing from the image (not even any class file). No log to tell what happened (even with -X and -Djib.serialize=true). The same occurs with another image or with jetty default image. And if I change the final name in the maven-war-plugin configuration (without packaging again), I get as expected an error saying that jib cannot find the war, so I guess jib can find the war and the error occurs later in the build. I use jib-maven-plugin 3.4.3 and maven-war-plugin 3.4.0. But it seemed to be the same with previous versions. Any idea ? How can I get more log otherwise ?
Thanks
Florent
The text was updated successfully, but these errors were encountered:
Thanks for reaching out. Do you mind providing a minimum reproducible sample so we can better understand your problem?
Otherwise, our readme has a section on war project that might be helplful. And you could also check if your case falls into any of these cases that's not supported yet: #1857
Thanks for the reply. I finally found out what was wrong on our project. But I still cannot explain the whole thing.
Our project was created with jhipster 6.10.5 (by cloning https://github.com/jhipster/jhipster-sample-app/tree/v6.10.5 one can get a project quite similar to ours) ... and it turns out that someone had changed the packaging type from jar to war (don't know why). By changing it back to jar everything works fine.
I tried to change the packaging type to war in the jhipster-sample-app but unfortunately it was not enough to reproduce (jib could package the war). There must be something else that has changed (another breaking action or maybe just a dependency update). This could be explored a little further. Unfortunately I won't be able to provide a minimum reproducible sample due to lack of time.
There is surely still work to do on this topic at least to make the log more relevant.
Hi,
I use jib-maven-plugin for many war/jar projects and find it really useful.
But I came across a case of a war project where it doesn't work and I can't tell why. Everything seems to work as the image is correctly sent to the container registry. But the war content (exploded or not) is totally missing from the image (not even any class file). No log to tell what happened (even with -X and -Djib.serialize=true). The same occurs with another image or with jetty default image. And if I change the final name in the maven-war-plugin configuration (without packaging again), I get as expected an error saying that jib cannot find the war, so I guess jib can find the war and the error occurs later in the build. I use jib-maven-plugin 3.4.3 and maven-war-plugin 3.4.0. But it seemed to be the same with previous versions. Any idea ? How can I get more log otherwise ?
Thanks
Florent
The text was updated successfully, but these errors were encountered: