Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
use jetty runner with procfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbrainard committed Jan 18, 2012
1 parent de9279d commit 9e8fdaf
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
@@ -1 +1 @@
web: mvn jetty:run -Djetty.port=$PORT
web: java $JAVA_OPTS -jar target/dependency/jetty-runner.jar --port $PORT target/*.war
30 changes: 30 additions & 0 deletions pom.xml
Expand Up @@ -10,6 +10,7 @@
<description>Axiom Single Sign-On Tools</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jetty-runner.version>7.4.5.v20110725</jetty-runner.version>
</properties>
<developers>
<developer>
Expand Down Expand Up @@ -146,6 +147,12 @@
<artifactId>signpost-core</artifactId>
<version>1.2.1.1</version>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-runner</artifactId>
<version>${jetty-runner.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<finalName>axiom</finalName>
Expand Down Expand Up @@ -182,6 +189,29 @@
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-runner</artifactId>
<version>${jetty-runner.version}</version>
<destFileName>jetty-runner.jar</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 9e8fdaf

Please sign in to comment.