0.13.3 10-Apr-2014

Making Runnable JAR

To make a runnable JAR with ReXSL inside add this dependency to your project:

<dependency>
  <groupId>com.rexsl</groupId>
  <artifactId>rexsl-standalone</artifactId>
  <version>0.13.3</version>
  <classifier>bin</classifier>
  <scope>test</scope>
</dependency>

Then, configure maven-war-plugin:

<plugin>
  <artifactId>maven-war-plugin</artifactId>
  <configuration>
    <archive>
      <manifest>
        <mainClass>com.rexsl.standalone.RexslMain</mainClass>
      </manifest>
    </archive>
    <overlays>
      <overlay>
        <groupId>com.rexsl</groupId>
        <artifactId>rexsl-standalone</artifactId>
        <classifier>bin</classifier>
        <type>jar</type>
      </overlay>
    </overlays>
  </configuration>
</plugin>

Now, package the entire project and run the WAR created:

$ mvn clean package
$ java -jar target/example-1.0-SNAPSHOT.war 8080

Should start a container at http://localhost:8080/.

built by maven