diff --git a/plugin/src/main/java/org/wildfly/plugin/provision/PackageServerMojo.java b/plugin/src/main/java/org/wildfly/plugin/provision/PackageServerMojo.java index 47b9a656..6e0c83d4 100644 --- a/plugin/src/main/java/org/wildfly/plugin/provision/PackageServerMojo.java +++ b/plugin/src/main/java/org/wildfly/plugin/provision/PackageServerMojo.java @@ -227,7 +227,8 @@ public class PackageServerMojo extends AbstractProvisionServerMojo { private GlowConfig discoverProvisioningInfo; /** - * Package the provisioned server into a WildFly Bootable JAR. + * Package the provisioned server into a WildFly Bootable JAR. In order to produce a hollow jar (a jar that doesn't contain + * a deployment) set the { @code skipDeployment } parameter. *

* Note that the produced fat JAR is ignored when running the {@code dev},{@code image},{@code start} or {@code run} goals. *

diff --git a/plugin/src/site/markdown/package-example.md.vm b/plugin/src/site/markdown/package-example.md.vm index 7e7ef295..a73890a0 100644 --- a/plugin/src/site/markdown/package-example.md.vm +++ b/plugin/src/site/markdown/package-example.md.vm @@ -1,6 +1,6 @@ # Package your application -The package goal allows you to provision a server using Galleon, execute CLI commands and scripts to fine tune the server configuration, copy some +The package goal allows you to provision a server using Galleon or build a Bootable JAR (an executable fat JAR), execute CLI commands and scripts to fine tune the server configuration, copy some extra content (e.g.: keystore, properties files) to the server installation and finally deploy your application. By default the server is provisioned in the ``target/server`` directory. @@ -49,6 +49,53 @@ The example below shows how to produce the latest released ${appServerName} serv ``` +#[[##]]# Create a Bootable JAR + +The example below shows how to produce the latest released ${appServerName} server trimmed using 'jaxrs-server' Galleon layer and packaged as a Bootable JAR. + +```xml + + ... + + ... + + ... + + ${project.groupId} + ${project.artifactId} + ${project.version} + + + + + wildfly@maven(org.jboss.universe:community-universe) + + + + + jaxrs-server + + true + + + + + + + package + + + + + ... + + ... + +... + +``` + #[[##]]# Galleon options You have the ability to set some optional Galleon options when provisioning a WildFly Server.