You are on page 1of 2

2024. 03. 10. 10:13 quickstart/shared-doc/build-and-run-the-quickstart-with-bootable-jar.

adoc at main · wildfly/quickstart

wildfly /
quickstart

Code Pull requests 17 Actions Security Insights

quickstart / shared-doc / build-and-run-the-quickstart-with-bootable-jar.adoc

emmartins Updates shared-docs XML snippets for openshift … last month

113 lines (102 loc) · 3.8 KB

Preview Code Blame Raw

Building and running the quickstart


application in a bootable JAR
You can use the WildFly JAR Maven plug-in to build a {productName} bootable JAR to
run this quickstart.

The quickstart pom.xml file contains a Maven profile named bootable-jar which
configures the bootable JAR building:

<profile>
<id>bootable-jar</id>
<build>
<plugins>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-jar-maven-plugin</artifactId>
<configuration>
<feature-pack-location>wildfly@maven(org.jboss.un
<layers>
<layer>jaxrs-server</layer>
<layer>microprofile-config</layer>
</layers>
<plugin-options>
<jboss-fork-embedded>true</jboss-fork-embedde
</plugin-options>
</configuration>
<executions>
<execution>
<goals>
<goal>package</goal>
</goals>

https://github.com/wildfly/quickstart/blob/main/shared-doc/build-and-run-the-quickstart-with-bootable-jar.adoc 1/2
2024. 03. 10. 10:13 quickstart/shared-doc/build-and-run-the-quickstart-with-bootable-jar.adoc at main · wildfly/quickstart

</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

Procedure

1. Build the quickstart bootable JAR with the following command:

$ mvn clean package -Pbootable-jar

2. Run the quickstart application contained in the bootable JAR:

$ java -jar target/{artifactId}-bootable.jar

3. You can now interact with the quickstart application.

After the quickstart application is deployed, the bootable JAR includes the
application in the root context. Therefore, any URLs related to the
Note application should not have the /{artifactId} path segment after
HOST:PORT .

../shared-doc/run-integration-tests-with-bootable-jar.adoc

https://github.com/wildfly/quickstart/blob/main/shared-doc/build-and-run-the-quickstart-with-bootable-jar.adoc 2/2

You might also like