Examples of how to write applications using Swarm.
JavaScript Java HTML CSS Ruby Scala
Permalink
Failed to load latest commit information.
arjuna Prepare for next development version Jun 22, 2018
base Prepare for next development version Jun 22, 2018
camel Prepare for next development version Jun 22, 2018
config-options Prepare for next development version Jun 22, 2018
datasource Prepare for next development version Jun 22, 2018
docker-wrapper THORN-2055 Reflect project rename and migration in examples Jun 11, 2018
docker Prepare for next development version Jun 22, 2018
flyway Prepare for next development version Jun 22, 2018
gradle-mail [SWARM-1914] Adding Applications to a number of examples (#174) Apr 6, 2018
gradle Prepare for next development version Jun 22, 2018
jaeger Prepare for next development version Jun 22, 2018
jaxrs Prepare for next development version Jun 22, 2018
jaxws Prepare for next development version Jun 22, 2018
jpa-jaxrs-cdi Prepare for next development version Jun 22, 2018
jpa Prepare for next development version Jun 22, 2018
jruby-sinatra Update to 1.0.0.CR1-SNAPSHOT for future development Apr 11, 2016
jsf Prepare for next development version Jun 22, 2018
kitchensink-html5-mobile THORN-2055 Reflect project rename and migration in examples Jun 11, 2018
logstash Prepare for next development version Jun 22, 2018
management-console Prepare for next development version Jun 22, 2018
messaging Prepare for next development version Jun 22, 2018
microprofile-opentracing Fix microprofile-opentracing parent version Jul 16, 2018
microprofile Prepare for next development version Jun 22, 2018
opentracing Prepare for next development version Jun 22, 2018
resource-adapter Prepare for next development version Jun 22, 2018
ribbon-consul Prepare for next development version Jun 22, 2018
ribbon Prepare for next development version Jun 22, 2018
security Prepare for next development version Jun 22, 2018
servlet Prepare for next development version Jun 22, 2018
spring Prepare for next development version Jun 22, 2018
static Prepare for next development version Jun 22, 2018
transactions Prepare for next development version Jun 22, 2018
vaadin Prepare for next development version Jun 22, 2018
vertx Prepare for next development version Jun 22, 2018
.gitignore Add some extra .classes to the HTML to make testing slightly easier. Dec 11, 2015
LICENSE.txt Add license, readme and gitignore Jun 4, 2015
README.adoc THORN-2055 Reflect project rename and migration in examples Jun 13, 2018
pom.xml Microprofile OpenTracing example (#162) Jul 3, 2018
versionBump.sh added script to bump versions Apr 28, 2016

README.adoc

WildFly-Swarm Examples

Please raise any issues found with the examples in our JIRA: https://issues.jboss.org/browse/SWARM

Thorntail

This repository contains examples for the Thorntail project.

It is currently listed as alpha release software, subject to massive, possibly-breaking, changes as we determine exactly how it should all hang together.

These Examples

These examples demonstrate utilizing and combining different parts of WildFly to create a self-contained executable jar. They provide small, specific, working examples that can be used as a reference for your own project.

By default, this repository uses SNAPSHOT versions of Thorntail. They are used to test particular aspects of the Thorntail project in addition to being useful examples of what you can do and how you can do it.

Since these examples are SNAPSHOT-centric, our snapshot repository is added to the root pom.xml. If you were to build Thorntail directly, that would of course take precedence.

If you want to build these examples as they stand (using the snapshot) then you should start by either running mvn install (use -DskipTests if you only want to run a specific test(s) at a time) or mvn install inside base/ first and then you can build each individually.

If you want to use our snapshot repository in your own projects, include this in your pom.xml:

<repositories>
  <repository>
    <id>projectodd-snapshots</id>
    <name>Project:odd Snapshots from CI</name>
    <url>https://repository-projectodd.forge.cloudbees.com/snapshot</url>
    <releases>
      <enabled>false</enabled>
    </releases>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
  </repository>
</repositories>
<pluginRepositories>
  <pluginRepository>
    <id>projectodd-snapshots</id>
    <name>Project:odd Snapshots from CI</name>
    <url>https://repository-projectodd.forge.cloudbees.com/snapshot</url>
    <releases>
      <enabled>false</enabled>
    </releases>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
  </pluginRepository>
</pluginRepositories>

To run the examples for a given release, please clone and checkout the particular Git tag or download from the releases.

UberJar vs non

By default, each example runs using the Maven plugin without constructing an uberjar. To run them as an uberjar, use the -Puberjar profile when invoking Maven.

mvn install -Puberjar

Docker

We have some examples that use Docker which are located in /docker. Building the examples requires that Docker is installed on your machine and that you run Maven with:

mvn install -Pdocker