Skip to content
This repository
Browse code

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

  • Loading branch information...
commit c7d1bf5a6a1570382bbb18e992e5fc15069d91a5 1 parent 1290042
Scott Murphy authored

Showing 2 changed files with 33 additions and 1 deletion. Show diff stats Hide diff stats

  1. +19 0 pom.xml
  2. +14 1 sitemesh-examples-hellowebapp/README.txt
19 pom.xml
@@ -65,6 +65,10 @@
65 65 </snapshotRepository>
66 66 </distributionManagement>
67 67
  68 + <properties>
  69 + <gae.version>1.4.0</gae.version>
  70 + </properties>
  71 +
68 72 <build>
69 73 <defaultGoal>install</defaultGoal>
70 74
@@ -85,6 +89,21 @@
85 89 <artifactId>jetty-maven-plugin</artifactId>
86 90 </plugin>
87 91
  92 + <!-- Google Appengine plugin. Allows quick testing via: mvn package gae:run -->
  93 + <plugin>
  94 + <groupId>net.kindleit</groupId>
  95 + <artifactId>maven-gae-plugin</artifactId>
  96 + </plugin>
  97 +
  98 + <!-- Tomcat plugin. Allows quick testing via: mvn tomcat:run -->
  99 + <plugin>
  100 + <groupId>org.codehaus.mojo</groupId>
  101 + <artifactId>tomcat-maven-plugin</artifactId>
  102 + <configuration>
  103 + <path>/</path>
  104 + </configuration>
  105 + </plugin>
  106 +
88 107 </plugins>
89 108 </build>
90 109
15 sitemesh-examples-hellowebapp/README.txt
@@ -7,9 +7,22 @@ To build:
7 7
8 8 To test:
9 9 mvn jetty:run
10   - Goto http://localhost:8080/sitemesh-examples-hellowebapp/
  10 + Goto http://localhost:8080/
11 11
12 12 To test on a different port, use: mvn -Djetty.port=1234 jetty:run.
13 13
  14 +or if you prefer tomcat:
  15 + mvn tomcat:run
  16 + Goto http://localhost:8080/
  17 +
  18 +or Google App Engine:
  19 + mvn gae:run
  20 + Goto http://localhost:8080/
  21 +
14 22 Alternatively, you can deploy the packaged war (target/sitemesh-examples-hellowebapp.war)
15 23 to another Servlet engine.
  24 +
  25 +
  26 +Note:
  27 +The file src/main/webapp/WEB-INF/appengine-web.xml is a file necessary for Google
  28 +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.