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
Support building an image when using war packaging with Maven #23823
Comments
Image building is only supported with jar packaging at the moment. Unless you are using JSPs, there's no need to use war packaging and jar packaging is strongly recommended. #22821 also relates to this. It is tracking support for building layered wars with Maven. |
This is already possible with Gradle, although it requires a little bit of manual configuration to make |
In my scenario jar packaging is totally fine so I will switch to that from war as you suggested. However, I suggest to mention jar limitation in maven plugin documentation: If JSPs require WAR packaging then I still suggest to add WAR packaging support for |
Thanks, @ondrejlerch. You make a good point about the documentation. I've opened #24105 to straighten that out. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
We've had that feedback now and the default builder now behaves differently depending on whether the war artifact has a |
A separate issue #24522 has been created to improve the current error message. |
I am trying to create OCI image via:
where my packaging is war:
But I am getting exception:
Looking at org.springframework.boot.maven.BuildImageMojo:182:
it seems to me that just jar packaging is supported.
Shouldn't be war (and other) packaging be supported as well?
Or is there some configuration option that I missed out?
Thanks for your feedback and great work on Spring ecosystem!
The text was updated successfully, but these errors were encountered: