svn commit: r833071 - in /struts/maven/trunk/struts2-archetype-portlet: pom.xml src/main/resources/archetype-resources/pom.xml src/main/resources/archetype-resources/src/main/resources/struts.xml

View: New views
1 Messages — Rating Filter:   Alert me  

svn commit: r833071 - in /struts/maven/trunk/struts2-archetype-portlet: pom.xml src/main/resources/archetype-resources/pom.xml src/main/resources/archetype-resources/src/main/resources/struts.xml

by lukaszlenart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Author: lukaszlenart
Date: Thu Nov  5 16:23:43 2009
New Revision: 833071

URL: http://svn.apache.org/viewvc?rev=833071&view=rev
Log:
Updated archetype to used 2.1.8 version of Struts 2

Modified:
    struts/maven/trunk/struts2-archetype-portlet/pom.xml
    struts/maven/trunk/struts2-archetype-portlet/src/main/resources/archetype-resources/pom.xml
    struts/maven/trunk/struts2-archetype-portlet/src/main/resources/archetype-resources/src/main/resources/struts.xml

Modified: struts/maven/trunk/struts2-archetype-portlet/pom.xml
URL: http://svn.apache.org/viewvc/struts/maven/trunk/struts2-archetype-portlet/pom.xml?rev=833071&r1=833070&r2=833071&view=diff
==============================================================================
--- struts/maven/trunk/struts2-archetype-portlet/pom.xml (original)
+++ struts/maven/trunk/struts2-archetype-portlet/pom.xml Thu Nov  5 16:23:43 2009
@@ -30,7 +30,7 @@
 
   <modelVersion>4.0.0</modelVersion>
   <artifactId>struts2-archetype-portlet</artifactId>
-  <version>2.1.7-SNAPSHOT</version>
+  <version>2.1.8</version>
   <packaging>jar</packaging>
   <name>Struts 2 Archetypes - Portlet</name>
 

Modified: struts/maven/trunk/struts2-archetype-portlet/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/struts/maven/trunk/struts2-archetype-portlet/src/main/resources/archetype-resources/pom.xml?rev=833071&r1=833070&r2=833071&view=diff
==============================================================================
--- struts/maven/trunk/struts2-archetype-portlet/src/main/resources/archetype-resources/pom.xml (original)
+++ struts/maven/trunk/struts2-archetype-portlet/src/main/resources/archetype-resources/pom.xml Thu Nov  5 16:23:43 2009
@@ -7,58 +7,81 @@
     <artifactId>${artifactId}</artifactId>
     <packaging>war</packaging>
     <name>My Portlet Application</name>
- <version>${version}</version>
-
- <dependencies>
- <dependency>
- <groupId>javax.portlet</groupId>
- <artifactId>portlet-api</artifactId>
- <version>1.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.struts</groupId>
- <artifactId>struts2-portlet-plugin</artifactId>
- <version>2.1.6</version>
- </dependency>
- <dependency>
- <groupId>com.bekk.boss</groupId>
- <artifactId>maven-jetty-pluto-embedded</artifactId>
- <version>1.0.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>jetty</artifactId>
- <version>6.1.14</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>jsp-2.1</artifactId>
- <version>6.1.14</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
-       <artifactId>maven-compiler-plugin</artifactId>
-       <configuration>
-         <source>1.5</source>
-         <target>1.5</target>
-       </configuration>
-     </plugin>
- </plugins>
- </build>
-
- <profiles>
+    <version>${version}</version>
+
+    <properties>
+        <struts2.version>2.1.8</struts2.version>
+    </properties>
+
+    <dependencies>
+
+        <!--  Struts 2 -->
+        <dependency>
+            <groupId>org.apache.struts</groupId>
+            <artifactId>struts2-core</artifactId>
+            <version>${struts2.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.struts</groupId>
+            <artifactId>struts2-portlet-plugin</artifactId>
+            <version>${struts2.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.struts</groupId>
+            <artifactId>struts2-config-browser-plugin</artifactId>
+            <version>${struts2.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>javax.portlet</groupId>
+            <artifactId>portlet-api</artifactId>
+            <version>1.0</version>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>com.bekk.boss</groupId>
+            <artifactId>maven-jetty-pluto-embedded</artifactId>
+            <version>1.0.1</version>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.mortbay.jetty</groupId>
+            <artifactId>jetty</artifactId>
+            <version>6.1.21</version>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.mortbay.jetty</groupId>
+            <artifactId>jsp-2.1</artifactId>
+            <version>6.1.14</version>
+            <scope>provided</scope>
+        </dependency>
+
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <profiles>
         <profile>
             <id>pluto-embedded</id>
             <build>
                 <plugins>
- <plugin>
+                    <plugin>
                         <groupId>org.apache.pluto</groupId>
                         <artifactId>maven-pluto-plugin</artifactId>
                         <version>1.1.6</version>
@@ -66,7 +89,7 @@
                             <execution>
                                 <phase>generate-resources</phase>
                                 <goals>
-                                   <goal>assemble</goal>
+                                    <goal>assemble</goal>
                                 </goals>
                             </execution>
                         </executions>
@@ -74,12 +97,13 @@
                     <plugin>
                         <groupId>org.mortbay.jetty</groupId>
                         <artifactId>maven-jetty-plugin</artifactId>
- <configuration>
- <webXml>${project.build.directory}/pluto-resources/web.xml</webXml>
- <webAppConfig>
- <contextPath>/${project.artifactId}</contextPath>
- <defaultsDescriptor>/WEB-INF/jetty-pluto-web-default.xml</defaultsDescriptor>
- </webAppConfig>
+                        <version>6.1.21</version>
+                        <configuration>
+                            <webXml>${project.build.directory}/pluto-resources/web.xml</webXml>
+                            <webAppConfig>
+                                <contextPath>/${project.artifactId}</contextPath>
+                                <defaultsDescriptor>/WEB-INF/jetty-pluto-web-default.xml</defaultsDescriptor>
+                            </webAppConfig>
                             <systemProperties>
                                 <systemProperty>
                                     <name>org.apache.pluto.embedded.portletIds</name>
@@ -87,13 +111,13 @@
                                 </systemProperty>
                             </systemProperties>
                         </configuration>
- <dependencies>
- <dependency>
-                <groupId>com.bekk.boss</groupId>
-                <artifactId>maven-jetty-pluto-embedded</artifactId>
-                <version>1.0.1</version>
-                    </dependency>
- </dependencies>
+                        <dependencies>
+                            <dependency>
+                                <groupId>com.bekk.boss</groupId>
+                                <artifactId>maven-jetty-pluto-embedded</artifactId>
+                                <version>1.0.1</version>
+                            </dependency>
+                        </dependencies>
                     </plugin>
                 </plugins>
             </build>

Modified: struts/maven/trunk/struts2-archetype-portlet/src/main/resources/archetype-resources/src/main/resources/struts.xml
URL: http://svn.apache.org/viewvc/struts/maven/trunk/struts2-archetype-portlet/src/main/resources/archetype-resources/src/main/resources/struts.xml?rev=833071&r1=833070&r2=833071&view=diff
==============================================================================
--- struts/maven/trunk/struts2-archetype-portlet/src/main/resources/archetype-resources/src/main/resources/struts.xml (original)
+++ struts/maven/trunk/struts2-archetype-portlet/src/main/resources/archetype-resources/src/main/resources/struts.xml Thu Nov  5 16:23:43 2009
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE struts PUBLIC
-    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
-    "http://struts.apache.org/dtds/struts-2.0.dtd">
+    "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
+    "http://struts.apache.org/dtds/struts-2.1.7.dtd">
 
 <struts>
    <package name="default" extends="struts-portlet-default" namespace="/view">
@@ -20,4 +20,4 @@
  <result name="input">/WEB-INF/jsp/edit/index.jsp</result>
  </action>
  </package>
-</struts>
\ No newline at end of file
+</struts>