Skip to content
Browse files

Added support for tomcat:run and gae:run to example hellowebapp.

  • Loading branch information...
1 parent 1290042 commit c7d1bf5a6a1570382bbb18e992e5fc15069d91a5 @codeconsole codeconsole committed Jan 17, 2011
Showing with 33 additions and 1 deletion.
  1. +19 −0 pom.xml
  2. +14 −1 sitemesh-examples-hellowebapp/README.txt
View
19 pom.xml
@@ -65,6 +65,10 @@
</snapshotRepository>
</distributionManagement>
+ <properties>
+ <gae.version>1.4.0</gae.version>
+ </properties>
+
<build>
<defaultGoal>install</defaultGoal>
@@ -85,6 +89,21 @@
<artifactId>jetty-maven-plugin</artifactId>
</plugin>
+ <!-- Google Appengine plugin. Allows quick testing via: mvn package gae:run -->
+ <plugin>
+ <groupId>net.kindleit</groupId>
+ <artifactId>maven-gae-plugin</artifactId>
+ </plugin>
+
+ <!-- Tomcat plugin. Allows quick testing via: mvn tomcat:run -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>tomcat-maven-plugin</artifactId>
+ <configuration>
+ <path>/</path>
+ </configuration>
+ </plugin>
+
</plugins>
</build>
View
15 sitemesh-examples-hellowebapp/README.txt
@@ -7,9 +7,22 @@ To build:
To test:
mvn jetty:run
- Goto http://localhost:8080/sitemesh-examples-hellowebapp/
+ Goto http://localhost:8080/
To test on a different port, use: mvn -Djetty.port=1234 jetty:run.
+or if you prefer tomcat:
+ mvn tomcat:run
+ Goto http://localhost:8080/
+
+or Google App Engine:
+ mvn gae:run
+ Goto http://localhost:8080/
+
Alternatively, you can deploy the packaged war (target/sitemesh-examples-hellowebapp.war)
to another Servlet engine.
+
+
+Note:
+The file src/main/webapp/WEB-INF/appengine-web.xml is a file necessary for Google
+App Engine and is not needed in a normal web application.

0 comments on commit c7d1bf5

Please sign in to comment.
Something went wrong with that request. Please try again.