Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set up of the java builpack

  • Loading branch information...
commit cdd2d19171053fc708d860b52b92035b02bdba4e 1 parent ed16329
jeremy-aubert authored
View
1  Procfile
@@ -0,0 +1 @@
+web: java $JAVA_OPTS -jar target/dependency/jetty-runner.jar --port $PORT target/*.war
View
4 README.md
@@ -1,7 +1,9 @@
Java Pet Store Sample
=============
-This is a Java sample using the Spring framework.
+This is a Java sample using the Spring framework. This application uses a java
+buildpack.
+
Building the Application
------------------------
View
5 manifest.yml
@@ -1,5 +0,0 @@
----
-applications:
- target:
- name: pet-store
- mem: 512M
View
21 pom.xml
@@ -88,6 +88,27 @@
<target>1.5</target>
</configuration>
</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>7.5.4.v20111024</version>
+ <destFileName>jetty-runner.jar</destFileName>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>
View
6 stackato.yml
@@ -0,0 +1,6 @@
+name: petstore
+mem: 512M
+framework:
+ type: buildpack
+env:
+ BUILDPACK_URL: https://github.com/heroku/heroku-buildpack-java.git
Please sign in to comment.
Something went wrong with that request. Please try again.