Skip to content
This repository has been archived by the owner. It is now read-only.


Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

thorntail Examples

Please raise any issues found with the examples in our JIRA:


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:

    <name>Project:odd Snapshots from CI</name>
    <name>Project:odd Snapshots from CI</name>

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


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