You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by jo...@apache.org on 2015/06/14 12:53:28 UTC

[16/16] struts-examples git commit: Add jetty plugin to all artifacts for fast try out of functionality and add note about it to readme

Add jetty plugin to all artifacts for fast try out of functionality and add note about it to readme


Project: http://git-wip-us.apache.org/repos/asf/struts-examples/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts-examples/commit/65936200
Tree: http://git-wip-us.apache.org/repos/asf/struts-examples/tree/65936200
Diff: http://git-wip-us.apache.org/repos/asf/struts-examples/diff/65936200

Branch: refs/heads/master
Commit: 65936200fc0e04cfc8ca965eed8803d2da9188ce
Parents: d75eb7a
Author: Johannes Geppert <jo...@apache.org>
Authored: Sun Jun 14 12:53:07 2015 +0200
Committer: Johannes Geppert <jo...@apache.org>
Committed: Sun Jun 14 12:53:07 2015 +0200

----------------------------------------------------------------------
 annotations/README.txt               |  3 +++
 basic-struts/README.txt              |  2 +-
 bean-validation/README.txt           |  2 +-
 blank/pom.xml                        |  3 +++
 coding-actions/README.txt            |  2 +-
 control-tags/README.txt              |  2 +-
 exception-handling/README.txt        |  3 +++
 exception-handling/pom.xml           | 18 ++++++++++++++++++
 exclude-parameters/README.txt        |  3 +++
 exclude-parameters/pom.xml           | 18 ++++++++++++++++++
 form-processing/README.txt           |  3 +++
 form-processing/pom.xml              | 18 ++++++++++++++++++
 form-tags/README.txt                 |  3 +++
 form-tags/pom.xml                    | 18 ++++++++++++++++++
 form-validation/README.txt           |  3 +++
 form-validation/pom.xml              | 18 ++++++++++++++++++
 form-xml-validation/README.txt       |  3 +++
 form-xml-validation/pom.xml          | 18 ++++++++++++++++++
 helloworld/README.txt                |  3 +++
 helloworld/pom.xml                   | 18 ++++++++++++++++++
 http-session/README.txt              |  3 +++
 http-session/pom.xml                 | 18 ++++++++++++++++++
 interceptors/README.txt              |  3 +++
 interceptors/pom.xml                 | 18 ++++++++++++++++++
 mailreader/pom.xml                   | 20 ++++++++++----------
 message-resource/README.txt          |  3 +++
 message-resource/pom.xml             | 18 ++++++++++++++++++
 preparable-interface/README.txt      |  3 +++
 preparable-interface/pom.xml         | 18 ++++++++++++++++++
 restful2actionmapper/README.txt      |  3 +++
 restful2actionmapper/pom.xml         | 18 ++++++++++++++++++
 spring-struts/README.txt             |  3 +++
 spring-struts/pom.xml                | 18 ++++++++++++++++++
 themes-override/README.txt           |  3 +++
 themes/README.txt                    |  3 +++
 themes/pom.xml                       |  6 ++++--
 unit-testing/README.txt              |  3 +++
 unit-testing/pom.xml                 | 26 ++++++++++++++++++++++----
 using-tags/README.txt                |  3 +++
 using-tags/pom.xml                   | 20 +++++++++++++++++++-
 wildcard-method-selection/README.txt |  3 +++
 wildcard-method-selection/pom.xml    |  3 +++
 42 files changed, 356 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/annotations/README.txt
----------------------------------------------------------------------
diff --git a/annotations/README.txt b/annotations/README.txt
index 6eb6eb0..570d538 100644
--- a/annotations/README.txt
+++ b/annotations/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/annotations/index.jsp 
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/basic-struts/README.txt
----------------------------------------------------------------------
diff --git a/basic-struts/README.txt b/basic-struts/README.txt
index c609f31..331e59e 100644
--- a/basic-struts/README.txt
+++ b/basic-struts/README.txt
@@ -10,7 +10,7 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat) and 
 then startup the Servlet container.
 
-Or you are using maven you can run command:
+Or if you are using maven you can run command:
 mvn jetty:run
 
 

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/bean-validation/README.txt
----------------------------------------------------------------------
diff --git a/bean-validation/README.txt b/bean-validation/README.txt
index 519f3f6..392d9aa 100755
--- a/bean-validation/README.txt
+++ b/bean-validation/README.txt
@@ -10,7 +10,7 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
-Or you are using maven you can run command:
+Or if you are using maven you can run command:
 mvn jetty:run
 
 In a web browser go to:  http://localhost:8080/bean-validation/index.action

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/blank/pom.xml
----------------------------------------------------------------------
diff --git a/blank/pom.xml b/blank/pom.xml
index 78f467c..74a435f 100644
--- a/blank/pom.xml
+++ b/blank/pom.xml
@@ -64,6 +64,9 @@
                 <artifactId>jetty-maven-plugin</artifactId>
                 <version>8.1.16.v20140903</version>
                 <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
                     <stopKey>CTRL+C</stopKey>
                     <stopPort>8999</stopPort>
                     <scanIntervalSeconds>10</scanIntervalSeconds>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/coding-actions/README.txt
----------------------------------------------------------------------
diff --git a/coding-actions/README.txt b/coding-actions/README.txt
index ee850e8..a269f42 100644
--- a/coding-actions/README.txt
+++ b/coding-actions/README.txt
@@ -10,7 +10,7 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
-Or you are using maven you can run command:
+Or if you are using maven you can run command:
 mvn jetty:run
 
 In a web browser go to:  http://localhost:8080/coding-actions/index.action.

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/control-tags/README.txt
----------------------------------------------------------------------
diff --git a/control-tags/README.txt b/control-tags/README.txt
index f1da262..b5d8062 100755
--- a/control-tags/README.txt
+++ b/control-tags/README.txt
@@ -10,7 +10,7 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
-Or you are using maven you can run command:
+Or if you are using maven you can run command:
 mvn jetty:run
 
 In a web browser go to:  http://localhost:8080/control-tags/index.action.

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/exception-handling/README.txt
----------------------------------------------------------------------
diff --git a/exception-handling/README.txt b/exception-handling/README.txt
index de86365..d350450 100644
--- a/exception-handling/README.txt
+++ b/exception-handling/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/exception-handling/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/exception-handling/pom.xml
----------------------------------------------------------------------
diff --git a/exception-handling/pom.xml b/exception-handling/pom.xml
index 86a555d..c6c1922 100644
--- a/exception-handling/pom.xml
+++ b/exception-handling/pom.xml
@@ -18,6 +18,24 @@
 
     <build>
         <finalName>exception-handling</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>8.1.16.v20140903</version>
+                <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
+                    <stopKey>CTRL+C</stopKey>
+                    <stopPort>8999</stopPort>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                    <scanTargets>
+                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
+                    </scanTargets>
+                </configuration>
+            </plugin>
+        </plugins>
     </build>
 
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/exclude-parameters/README.txt
----------------------------------------------------------------------
diff --git a/exclude-parameters/README.txt b/exclude-parameters/README.txt
index 56d63d4..85a5db2 100644
--- a/exclude-parameters/README.txt
+++ b/exclude-parameters/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/exclude-parameters/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/exclude-parameters/pom.xml
----------------------------------------------------------------------
diff --git a/exclude-parameters/pom.xml b/exclude-parameters/pom.xml
index 920c505..7b439ac 100644
--- a/exclude-parameters/pom.xml
+++ b/exclude-parameters/pom.xml
@@ -19,6 +19,24 @@
 
     <build>
         <finalName>exclude-parameters</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>8.1.16.v20140903</version>
+                <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
+                    <stopKey>CTRL+C</stopKey>
+                    <stopPort>8999</stopPort>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                    <scanTargets>
+                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
+                    </scanTargets>
+                </configuration>
+            </plugin>
+        </plugins>
     </build>
 
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/form-processing/README.txt
----------------------------------------------------------------------
diff --git a/form-processing/README.txt b/form-processing/README.txt
index 70e168f..bdcb84e 100644
--- a/form-processing/README.txt
+++ b/form-processing/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/form-processing/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/form-processing/pom.xml
----------------------------------------------------------------------
diff --git a/form-processing/pom.xml b/form-processing/pom.xml
index d355876..1d61758 100644
--- a/form-processing/pom.xml
+++ b/form-processing/pom.xml
@@ -18,5 +18,23 @@
 
     <build>
         <finalName>form-processing</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>8.1.16.v20140903</version>
+                <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
+                    <stopKey>CTRL+C</stopKey>
+                    <stopPort>8999</stopPort>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                    <scanTargets>
+                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
+                    </scanTargets>
+                </configuration>
+            </plugin>
+        </plugins>
     </build>
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/form-tags/README.txt
----------------------------------------------------------------------
diff --git a/form-tags/README.txt b/form-tags/README.txt
index ca309b2..d48b9bf 100644
--- a/form-tags/README.txt
+++ b/form-tags/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/form-tags/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/form-tags/pom.xml
----------------------------------------------------------------------
diff --git a/form-tags/pom.xml b/form-tags/pom.xml
index f529e18..42e797c 100644
--- a/form-tags/pom.xml
+++ b/form-tags/pom.xml
@@ -19,6 +19,24 @@
 
     <build>
         <finalName>form-tags</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>8.1.16.v20140903</version>
+                <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
+                    <stopKey>CTRL+C</stopKey>
+                    <stopPort>8999</stopPort>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                    <scanTargets>
+                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
+                    </scanTargets>
+                </configuration>
+            </plugin>
+        </plugins>
     </build>
 
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/form-validation/README.txt
----------------------------------------------------------------------
diff --git a/form-validation/README.txt b/form-validation/README.txt
index 2dabeb0..7ecf75f 100644
--- a/form-validation/README.txt
+++ b/form-validation/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/form-validation/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/form-validation/pom.xml
----------------------------------------------------------------------
diff --git a/form-validation/pom.xml b/form-validation/pom.xml
index 8f8a2e1..7a0a50d 100644
--- a/form-validation/pom.xml
+++ b/form-validation/pom.xml
@@ -19,6 +19,24 @@
 
     <build>
         <finalName>form_validation</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>8.1.16.v20140903</version>
+                <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
+                    <stopKey>CTRL+C</stopKey>
+                    <stopPort>8999</stopPort>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                    <scanTargets>
+                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
+                    </scanTargets>
+                </configuration>
+            </plugin>
+        </plugins>
     </build>
 
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/form-xml-validation/README.txt
----------------------------------------------------------------------
diff --git a/form-xml-validation/README.txt b/form-xml-validation/README.txt
index 067681c..a7ddabc 100644
--- a/form-xml-validation/README.txt
+++ b/form-xml-validation/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/form-xml-validation/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/form-xml-validation/pom.xml
----------------------------------------------------------------------
diff --git a/form-xml-validation/pom.xml b/form-xml-validation/pom.xml
index adc063d..290eff3 100644
--- a/form-xml-validation/pom.xml
+++ b/form-xml-validation/pom.xml
@@ -18,6 +18,24 @@
 
     <build>
         <finalName>form-xml-validation</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>8.1.16.v20140903</version>
+                <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
+                    <stopKey>CTRL+C</stopKey>
+                    <stopPort>8999</stopPort>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                    <scanTargets>
+                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
+                    </scanTargets>
+                </configuration>
+            </plugin>
+        </plugins>
     </build>
 
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/helloworld/README.txt
----------------------------------------------------------------------
diff --git a/helloworld/README.txt b/helloworld/README.txt
index 19d2338..94aa3c0 100755
--- a/helloworld/README.txt
+++ b/helloworld/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/hello-world/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/helloworld/pom.xml
----------------------------------------------------------------------
diff --git a/helloworld/pom.xml b/helloworld/pom.xml
index ef4ea50..6493efc 100644
--- a/helloworld/pom.xml
+++ b/helloworld/pom.xml
@@ -18,5 +18,23 @@
 
     <build>
         <finalName>hello-world</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>8.1.16.v20140903</version>
+                <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
+                    <stopKey>CTRL+C</stopKey>
+                    <stopPort>8999</stopPort>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                    <scanTargets>
+                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
+                    </scanTargets>
+                </configuration>
+            </plugin>
+        </plugins>
     </build>
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/http-session/README.txt
----------------------------------------------------------------------
diff --git a/http-session/README.txt b/http-session/README.txt
index 8689b30..3e9f7d2 100644
--- a/http-session/README.txt
+++ b/http-session/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/http-session/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/http-session/pom.xml
----------------------------------------------------------------------
diff --git a/http-session/pom.xml b/http-session/pom.xml
index f5d0a1c..ecba425 100644
--- a/http-session/pom.xml
+++ b/http-session/pom.xml
@@ -19,5 +19,23 @@
 
     <build>
         <finalName>http-session</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>8.1.16.v20140903</version>
+                <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
+                    <stopKey>CTRL+C</stopKey>
+                    <stopPort>8999</stopPort>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                    <scanTargets>
+                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
+                    </scanTargets>
+                </configuration>
+            </plugin>
+        </plugins>
     </build>
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/interceptors/README.txt
----------------------------------------------------------------------
diff --git a/interceptors/README.txt b/interceptors/README.txt
index d3e2ae5..daaa6c6 100644
--- a/interceptors/README.txt
+++ b/interceptors/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/interceptors/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/interceptors/pom.xml
----------------------------------------------------------------------
diff --git a/interceptors/pom.xml b/interceptors/pom.xml
index 955a08c..0d5b422 100644
--- a/interceptors/pom.xml
+++ b/interceptors/pom.xml
@@ -19,6 +19,24 @@
 
     <build>
         <finalName>interceptors</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>8.1.16.v20140903</version>
+                <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
+                    <stopKey>CTRL+C</stopKey>
+                    <stopPort>8999</stopPort>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                    <scanTargets>
+                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
+                    </scanTargets>
+                </configuration>
+            </plugin>
+        </plugins>
     </build>
 
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/mailreader/pom.xml
----------------------------------------------------------------------
diff --git a/mailreader/pom.xml b/mailreader/pom.xml
index 1f70592..512860c 100644
--- a/mailreader/pom.xml
+++ b/mailreader/pom.xml
@@ -21,7 +21,8 @@
  * under the License.
  */
 -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>struts.apache.org</groupId>
@@ -43,9 +44,9 @@
         </dependency>
 
         <dependency>
-           <groupId>org.apache.struts</groupId>
-           <artifactId>struts-mailreader-dao</artifactId>
-           <version>1.3.5</version>
+            <groupId>org.apache.struts</groupId>
+            <artifactId>struts-mailreader-dao</artifactId>
+            <version>1.3.5</version>
         </dependency>
 
         <!-- Logging -->
@@ -73,19 +74,18 @@
                 <artifactId>jetty-maven-plugin</artifactId>
                 <version>8.1.16.v20140903</version>
                 <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
                     <stopKey>CTRL+C</stopKey>
                     <stopPort>8999</stopPort>
-                   <scanIntervalSeconds>10</scanIntervalSeconds>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
                     <webAppSourceDirectory>${basedir}/src/main/webapp/</webAppSourceDirectory>
-                    <webAppConfig>
-                        <contextPath>/struts2-mailreader</contextPath>
-                        <descriptor>${basedir}/src/main/webapp/WEB-INF/web.xml</descriptor>
-                    </webAppConfig>
                 </configuration>
             </plugin>
         </plugins>
     </build>
     <properties>
-    	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/message-resource/README.txt
----------------------------------------------------------------------
diff --git a/message-resource/README.txt b/message-resource/README.txt
index 299304a..f5f571b 100644
--- a/message-resource/README.txt
+++ b/message-resource/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/message-resource/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/message-resource/pom.xml
----------------------------------------------------------------------
diff --git a/message-resource/pom.xml b/message-resource/pom.xml
index ea9f2d0..f559388 100644
--- a/message-resource/pom.xml
+++ b/message-resource/pom.xml
@@ -19,6 +19,24 @@
 
     <build>
         <finalName>message-resource</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>8.1.16.v20140903</version>
+                <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
+                    <stopKey>CTRL+C</stopKey>
+                    <stopPort>8999</stopPort>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                    <scanTargets>
+                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
+                    </scanTargets>
+                </configuration>
+            </plugin>
+        </plugins>
     </build>
 
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/preparable-interface/README.txt
----------------------------------------------------------------------
diff --git a/preparable-interface/README.txt b/preparable-interface/README.txt
index 067c0d8..647008a 100644
--- a/preparable-interface/README.txt
+++ b/preparable-interface/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/preparable-interface/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/preparable-interface/pom.xml
----------------------------------------------------------------------
diff --git a/preparable-interface/pom.xml b/preparable-interface/pom.xml
index ee7d994..38596c5 100644
--- a/preparable-interface/pom.xml
+++ b/preparable-interface/pom.xml
@@ -19,6 +19,24 @@
 
     <build>
         <finalName>preparable-interface</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>8.1.16.v20140903</version>
+                <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
+                    <stopKey>CTRL+C</stopKey>
+                    <stopPort>8999</stopPort>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                    <scanTargets>
+                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
+                    </scanTargets>
+                </configuration>
+            </plugin>
+        </plugins>
     </build>
 
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/restful2actionmapper/README.txt
----------------------------------------------------------------------
diff --git a/restful2actionmapper/README.txt b/restful2actionmapper/README.txt
index ebf3019..bff3130 100644
--- a/restful2actionmapper/README.txt
+++ b/restful2actionmapper/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/reststyleactionmapper/
 
 You should see a web page with Welcome to Struts 2.

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/restful2actionmapper/pom.xml
----------------------------------------------------------------------
diff --git a/restful2actionmapper/pom.xml b/restful2actionmapper/pom.xml
index cff5924..ea96861 100644
--- a/restful2actionmapper/pom.xml
+++ b/restful2actionmapper/pom.xml
@@ -21,6 +21,24 @@
 
     <build>
         <finalName>reststyleactionmapper</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>8.1.16.v20140903</version>
+                <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
+                    <stopKey>CTRL+C</stopKey>
+                    <stopPort>8999</stopPort>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                    <scanTargets>
+                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
+                    </scanTargets>
+                </configuration>
+            </plugin>
+        </plugins>
     </build>
 
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/spring-struts/README.txt
----------------------------------------------------------------------
diff --git a/spring-struts/README.txt b/spring-struts/README.txt
index c9b1d9a..6be1e15 100644
--- a/spring-struts/README.txt
+++ b/spring-struts/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/spring-struts/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/spring-struts/pom.xml
----------------------------------------------------------------------
diff --git a/spring-struts/pom.xml b/spring-struts/pom.xml
index 0531b3a..91ce88a 100644
--- a/spring-struts/pom.xml
+++ b/spring-struts/pom.xml
@@ -24,6 +24,24 @@
     </dependencies>
     <build>
         <finalName>spring-struts</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>8.1.16.v20140903</version>
+                <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
+                    <stopKey>CTRL+C</stopKey>
+                    <stopPort>8999</stopPort>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                    <scanTargets>
+                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
+                    </scanTargets>
+                </configuration>
+            </plugin>
+        </plugins>
     </build>
 
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/themes-override/README.txt
----------------------------------------------------------------------
diff --git a/themes-override/README.txt b/themes-override/README.txt
index 2a1b48c..1754c87 100644
--- a/themes-override/README.txt
+++ b/themes-override/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/themes-override/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/themes/README.txt
----------------------------------------------------------------------
diff --git a/themes/README.txt b/themes/README.txt
index 677a62f..94d490c 100644
--- a/themes/README.txt
+++ b/themes/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/themes/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/themes/pom.xml
----------------------------------------------------------------------
diff --git a/themes/pom.xml b/themes/pom.xml
index 87dd43c..044e84d 100644
--- a/themes/pom.xml
+++ b/themes/pom.xml
@@ -25,8 +25,11 @@
             <plugin>
                 <groupId>org.mortbay.jetty</groupId>
                 <artifactId>jetty-maven-plugin</artifactId>
-                <version>8.1.7.v20120910</version>
+                <version>8.1.16.v20140903</version>
                 <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
                     <stopKey>CTRL+C</stopKey>
                     <stopPort>8999</stopPort>
                     <scanIntervalSeconds>10</scanIntervalSeconds>
@@ -36,7 +39,6 @@
                 </configuration>
             </plugin>
         </plugins>
-
     </build>
 
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/unit-testing/README.txt
----------------------------------------------------------------------
diff --git a/unit-testing/README.txt b/unit-testing/README.txt
index 61377ee..d71eee5 100644
--- a/unit-testing/README.txt
+++ b/unit-testing/README.txt
@@ -12,6 +12,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/unit-testing/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/unit-testing/pom.xml
----------------------------------------------------------------------
diff --git a/unit-testing/pom.xml b/unit-testing/pom.xml
index 38ceeee..933e5ef 100644
--- a/unit-testing/pom.xml
+++ b/unit-testing/pom.xml
@@ -13,10 +13,6 @@
 
 	<name>Unit Testing</name>
 
-	<build>
-		<finalName>unit-testing</finalName>
-	</build>
-
 	<packaging>war</packaging>
 
 	<dependencies>
@@ -42,4 +38,26 @@
 			<scope>test</scope>
 		</dependency>
 	</dependencies>
+
+	<build>
+		<finalName>unit-testing</finalName>
+		<plugins>
+			<plugin>
+				<groupId>org.mortbay.jetty</groupId>
+				<artifactId>jetty-maven-plugin</artifactId>
+				<version>8.1.16.v20140903</version>
+				<configuration>
+					<webApp>
+						<contextPath>/${artifactId}</contextPath>
+					</webApp>
+					<stopKey>CTRL+C</stopKey>
+					<stopPort>8999</stopPort>
+					<scanIntervalSeconds>10</scanIntervalSeconds>
+					<scanTargets>
+						<scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
+					</scanTargets>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/using-tags/README.txt
----------------------------------------------------------------------
diff --git a/using-tags/README.txt b/using-tags/README.txt
index 2ebb6ed..35308c1 100644
--- a/using-tags/README.txt
+++ b/using-tags/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/using-tags/index.action.
 
 You should see a web page with Welcome to Struts 2!

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/using-tags/pom.xml
----------------------------------------------------------------------
diff --git a/using-tags/pom.xml b/using-tags/pom.xml
index 4da6604..abd3916 100644
--- a/using-tags/pom.xml
+++ b/using-tags/pom.xml
@@ -17,7 +17,25 @@
     <packaging>war</packaging>
 
     <build>
-        <finalName>using_tags</finalName>
+        <finalName>using-tags</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>8.1.16.v20140903</version>
+                <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
+                    <stopKey>CTRL+C</stopKey>
+                    <stopPort>8999</stopPort>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                    <scanTargets>
+                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
+                    </scanTargets>
+                </configuration>
+            </plugin>
+        </plugins>
     </build>
 
 </project>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/wildcard-method-selection/README.txt
----------------------------------------------------------------------
diff --git a/wildcard-method-selection/README.txt b/wildcard-method-selection/README.txt
index cd9275d..a0cae36 100644
--- a/wildcard-method-selection/README.txt
+++ b/wildcard-method-selection/README.txt
@@ -10,6 +10,9 @@ The war file is created in the target sub-folder.
 Copy the war file to your Servlet container (e.g. Tomcat, GlassFish) and 
 then startup the Servlet container.
 
+Or if you are using maven you can run command:
+mvn jetty:run
+
 In a web browser go to:  http://localhost:8080/wildcard-method-selection/Person.action
 
 You should see a web page with People listed.

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/65936200/wildcard-method-selection/pom.xml
----------------------------------------------------------------------
diff --git a/wildcard-method-selection/pom.xml b/wildcard-method-selection/pom.xml
index 8b4fe1f..bcd156e 100644
--- a/wildcard-method-selection/pom.xml
+++ b/wildcard-method-selection/pom.xml
@@ -25,6 +25,9 @@
                 <artifactId>jetty-maven-plugin</artifactId>
                 <version>8.1.16.v20140903</version>
                 <configuration>
+                    <webApp>
+                        <contextPath>/${artifactId}</contextPath>
+                    </webApp>
                     <stopKey>CTRL+C</stopKey>
                     <stopPort>8999</stopPort>
                     <scanIntervalSeconds>10</scanIntervalSeconds>