Examples of how to write applications using Swarm.
JavaScript Java HTML CSS Ruby Scala
Latest commit 7f63a65 Jan 15, 2017 @emag emag committed with kenfinnigan SWARM-998: Add Keycloak Example (#123)
Motivation
----------
Now Keycloak Fraction doesn't require main().
It's time to add Keyclaok Example.

Modifications
-------------
Add Keyclaok Example under security module.

Result
------
No impact to product, add example.
Permalink
Failed to load latest commit information.
arjuna Prepare for next development version. Jan 5, 2017
base Prepare for next development version. Jan 5, 2017
camel Prepare for next development version. Jan 5, 2017
config-options Prepare for next development version. Jan 5, 2017
datasource Prepare for next development version. Jan 5, 2017
docker-wrapper Example of packaging WildFly Swarm example into Docker container by u… Jul 9, 2015
docker Prepare for next development version. Jan 5, 2017
flyway Prepare for next development version. Jan 5, 2017
gradle-mail Update to 1.0.0.CR1-SNAPSHOT for future development Apr 11, 2016
gradle use gradle 2.14.1 for tests Oct 27, 2016
jaxrs Prepare for next development version. Jan 5, 2017
jaxws Prepare for next development version. Jan 5, 2017
jpa-jaxrs-cdi Prepare for next development version. Jan 5, 2017
jpa Prepare for next development version. Jan 5, 2017
jruby-sinatra Update to 1.0.0.CR1-SNAPSHOT for future development Apr 11, 2016
jsf Prepare for next development version. Jan 5, 2017
kitchensink-html5-mobile Perform renaming of Container to Swarm to remove deprecations. Aug 12, 2016
logstash SWARM-977: Enable Logstash example (#121) Jan 14, 2017
management-console Prepare for next development version. Jan 5, 2017
messaging Prepare for next development version. Jan 5, 2017
microprofile Prepare for next development version. Jan 5, 2017
msc Prepare for next development version. Jan 5, 2017
resource-adapter Prepare for next development version. Jan 5, 2017
ribbon-consul Prepare for next development version. Jan 5, 2017
ribbon-secured Perform renaming of Container to Swarm to remove deprecations. Aug 12, 2016
ribbon Prepare for next development version. Jan 5, 2017
security SWARM-998: Add Keycloak Example (#123) Jan 15, 2017
servlet Prepare for next development version. Jan 5, 2017
spring Prepare for next development version. Jan 5, 2017
static Prepare for next development version. Jan 5, 2017
swagger-webapp Prepare for next development version. Jan 5, 2017
transactions Prepare for next development version. Jan 5, 2017
vaadin Prepare for next development version. Jan 5, 2017
vertx Prepare for next development version. Jan 5, 2017
.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 SWARM-272, add some info about the 'docker' profile Mar 23, 2016
pom.xml SWARM-997: Change SNAPSHOT repository to Maven Central (#122) Jan 14, 2017
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

WildFly Swarm

This repository contains examples for the WildFly Swarm 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 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 WildFly Swarm. They are used to test particular aspects of the WildFly Swarm 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 WildFly Swarm 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