<dependency>
<groupId>org.wildfly.swarm</groupId>
<artifactId>wildfly-swarm-jaxrs</artifactId>
</dependency>
Rightsize Your Services
Swarm offers an innovative approach to packaging and running JavaEE applications by packaging them with just enough of the platform to "java -jar" your application. However, it's all much, much cooler than that ...
Foo
Using WildFly swarm is easy! Add dependencies for just the parts of WildFly that you need. The following example assumes a simple JAX-RS RESTful application.
<dependency>
<groupId>org.wildfly.swarm</groupId>
<artifactId>wildfly-swarm-jaxrs</artifactId>
</dependency>
To create an uberjar, configure the plugin:
<plugin>
<groupId>org.wildfly.swarm</groupId>
<artifactId>wildfly-swarm-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>package</goal>
</goals>
</execution>
</executions>
</plugin>
Deploy the generated .war to any JavaEE compatible application server, or run the uberjar:
java -jar MyApp.jar