wildfly-extras / wildfly-jar-maven-plugin

WildFly Bootable JAR
https://docs.wildfly.org/bootablejar/
Apache License 2.0
57 stars 40 forks source link

Extend Maven plugin to create bootable jar from existing Web Archive. #227

Open chris-corless opened 3 years ago

chris-corless commented 3 years ago

Please extend the wildfly-jar-maven-plugin plugin to allow generation of a bootable jar from an existing .war file. This will be prove very useful in those cases where web archive assembly is more complex and cannot be handled by maven directly.

jamezp commented 3 years ago

Do you mean creating a new project which has a dependency on a WAR?

jfdenise commented 3 years ago

I was thinking at a path to a war (or any supported deployment) file that would be used during packaging time, not a Maven "dependency". So a new option in the Maven plugin configuration.

This issue in some way is related to being able to build a Bootable JAR outside Maven, something like: java -jar wildfly-bootable-jar-builder.jar build --galleon-layers=x,y,z --location=org.wildfly:wildfly-galleon-feature-pack:24.0.0.Final --deployment=mywar.war The builder would rely on an API that other project could use (Arquilian?).

jamezp commented 3 years ago

Ah so more of a command line tool. I can kind of see both use cases TBH. The simplest being a new maven project with a WAR dependency.

chris-corless commented 3 years ago

Ideally, it would be through a maven plugin, so I could add it to the build.  But it would be applied at a later phase, after the WAR was built.

On 9/4/21 1:24 am, James R. Perkins wrote:

Ah so more of a command line tool. I can kind of see both use cases TBH. The simplest being a new maven project with a WAR dependency.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wildfly-extras/wildfly-jar-maven-plugin/issues/227#issuecomment-815940662, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAZ2FCOWVUCI5D2CVOEIC3THXGTJANCNFSM42SQTBMA.

jfdenise commented 3 years ago

@chris-corless , the ability to reference an external deployment has been added. We plan to release an early access of the feature in 6.0.0.Alpha1. Let us know if that answers your needs.

jfdenise commented 2 years ago

@chris-corless , in the end we didn't release a support for "server mode" that was offering the ability to package a war in the bootable JAR.