You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ra...@apache.org on 2008/11/12 23:05:22 UTC

svn commit: r713529 - in /maven/archetype/trunk/archetype-samples: pom.xml webapp/ webapp/pom.xml webapp/src/ webapp/src/main/ webapp/src/main/webapp/ webapp/src/main/webapp/WEB-INF/ webapp/src/main/webapp/WEB-INF/web.xml webapp/src/main/webapp/index.jsp

Author: rafale
Date: Wed Nov 12 14:05:21 2008
New Revision: 713529

URL: http://svn.apache.org/viewvc?rev=713529&view=rev
Log:
Added webapp example using tomcat:run or jetty:run

Added:
    maven/archetype/trunk/archetype-samples/webapp/
    maven/archetype/trunk/archetype-samples/webapp/pom.xml   (with props)
    maven/archetype/trunk/archetype-samples/webapp/src/
    maven/archetype/trunk/archetype-samples/webapp/src/main/
    maven/archetype/trunk/archetype-samples/webapp/src/main/webapp/
    maven/archetype/trunk/archetype-samples/webapp/src/main/webapp/WEB-INF/
    maven/archetype/trunk/archetype-samples/webapp/src/main/webapp/WEB-INF/web.xml   (with props)
    maven/archetype/trunk/archetype-samples/webapp/src/main/webapp/index.jsp   (with props)
Modified:
    maven/archetype/trunk/archetype-samples/pom.xml

Modified: maven/archetype/trunk/archetype-samples/pom.xml
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-samples/pom.xml?rev=713529&r1=713528&r2=713529&view=diff
==============================================================================
--- maven/archetype/trunk/archetype-samples/pom.xml (original)
+++ maven/archetype/trunk/archetype-samples/pom.xml Wed Nov 12 14:05:21 2008
@@ -19,6 +19,7 @@
   <!--modules>
     <module>quickstart</module>
     <module>mojo</module>
+    <module>webapp</module>
   </modules-->
 
   <properties>

Added: maven/archetype/trunk/archetype-samples/webapp/pom.xml
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-samples/webapp/pom.xml?rev=713529&view=auto
==============================================================================
--- maven/archetype/trunk/archetype-samples/webapp/pom.xml (added)
+++ maven/archetype/trunk/archetype-samples/webapp/pom.xml Wed Nov 12 14:05:21 2008
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>org.apache.maven.archetypes</groupId>
+        <artifactId>archetype-samples</artifactId>
+        <version>2.0-alpha-5-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>maven-webapp</artifactId>
+    <version>2.0-SNAPSHOT</version>
+    <packaging>war</packaging>
+
+    <name>Maven Webapp Sample</name>
+
+    <profiles>
+        <profile>
+            <id>jetty</id>
+            <build>
+                <defaultGoal>jetty:run</defaultGoal>
+                <plugins>
+                    <plugin>
+                        <groupId>org.mortbay.jetty</groupId>
+                        <artifactId>maven-jetty-plugin</artifactId>
+                        <configuration>
+                            <connectors>
+                                <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+                                    <port>15000</port>
+                                    <maxIdleTime>60000</maxIdleTime>
+                                </connector>
+                            </connectors>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        <profile>
+            <id>tomcat</id>
+            <build>
+                <defaultGoal>tomcat:run</defaultGoal>
+                <finalName>${pom.artifactId}</finalName>
+                <plugins>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>tomcat-maven-plugin</artifactId>
+                        <configuration>
+                            <port>15000</port>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+</project>

Propchange: maven/archetype/trunk/archetype-samples/webapp/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: maven/archetype/trunk/archetype-samples/webapp/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-samples/webapp/src/main/webapp/WEB-INF/web.xml?rev=713529&view=auto
==============================================================================
--- maven/archetype/trunk/archetype-samples/webapp/src/main/webapp/WEB-INF/web.xml (added)
+++ maven/archetype/trunk/archetype-samples/webapp/src/main/webapp/WEB-INF/web.xml Wed Nov 12 14:05:21 2008
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+         version="2.5">
+
+  <display-name>Archetype Created Web Application</display-name>
+  <welcome-file-list>
+      <welcome-file>index.jsp</welcome-file>
+  </welcome-file-list>
+</web-app>

Propchange: maven/archetype/trunk/archetype-samples/webapp/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: maven/archetype/trunk/archetype-samples/webapp/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-samples/webapp/src/main/webapp/index.jsp?rev=713529&view=auto
==============================================================================
--- maven/archetype/trunk/archetype-samples/webapp/src/main/webapp/index.jsp (added)
+++ maven/archetype/trunk/archetype-samples/webapp/src/main/webapp/index.jsp Wed Nov 12 14:05:21 2008
@@ -0,0 +1,5 @@
+<html>
+<body>
+<h2>Hello World!</h2>
+</body>
+</html>

Propchange: maven/archetype/trunk/archetype-samples/webapp/src/main/webapp/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native