-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Add support for creating layered war files with Maven #22821
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
Comments
Thanks for the report. We don't support layered war files at the moment. #22195 is tracking that enhancement. |
I've updated #22195 to focus on Gradle support for layered war files. Let's use this issue for the Maven side of things. |
mbhave
added a commit
that referenced
this issue
Jan 28, 2021
Keeping the issue open to add documentation once the gradle issue is completed. |
mbhave
added a commit
that referenced
this issue
Jan 28, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Repackaging application with layer=WAR:
throws Exception:
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.2.RELEASE:repackage (repackage) on project rob-oro: A type incompatibility occurred while executing org.springframework.boot:spring-boot-maven-plugin:2.3.2.RELEASE:repackage: class org.springframework.boot.loader.tools.Layouts$War cannot be cast to class org.springframework.boot.loader.tools.RepackagingLayout (org.springframework.boot.loader.tools.Layouts$War and org.springframework.boot.loader.tools.RepackagingLayout are in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm @5b1f0f26)
JAR layout is working. I think WAR layout should also implement RepackagingLayout:
public static class Layouts.War extends Object implements Layout
public static class Layouts.Jar extends Object implements RepackagingLayout
The text was updated successfully, but these errors were encountered: