Author: jmitchell
Date: Wed Mar 14 17:42:26 2007
New Revision: 518396

URL: http://svn.apache.org/viewvc?view=rev&rev=518396
Log:
WW-1645 add pluto config so you can deploy to pluto -- tested on pluto 1.1.0 -- 
to build for pluto, run: mvn package -Ppluto

Modified:
    struts/struts2/trunk/apps/portlet/pom.xml

Modified: struts/struts2/trunk/apps/portlet/pom.xml
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/apps/portlet/pom.xml?view=diff&rev=518396&r1=518395&r2=518396
==============================================================================
--- struts/struts2/trunk/apps/portlet/pom.xml (original)
+++ struts/struts2/trunk/apps/portlet/pom.xml Wed Mar 14 17:42:26 2007
@@ -17,7 +17,38 @@
        
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/apps/portlet/</developerConnection>
        
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/apps/portlet/</url>
     </scm>
-
+       
+       <profiles>
+               <profile>
+                       <id>pluto</id>
+                       <build>
+                               <plugins>
+                                 <!-- configure maven-war-plugin to use 
updated web.xml -->
+                             <plugin>
+                               <artifactId>maven-war-plugin</artifactId>
+                               <configuration>
+                                 
<webXml>${project.build.directory}/pluto-resources/web.xml</webXml>
+                               </configuration>
+                             </plugin>
+                             <!-- bind 'pluto:assemble' goal to 
'process-resources' lifecycle -->
+                             <plugin>
+                               <groupId>org.apache.pluto</groupId>
+                               <artifactId>maven-pluto-plugin</artifactId>
+                               <version>1.1.1</version>
+                               <executions>
+                                 <execution>
+                                   <phase>generate-resources</phase>
+                                   <goals>
+                                     <goal>assemble</goal>
+                                   </goals>
+                                 </execution>
+                               </executions>
+                             </plugin>
+                               </plugins>
+                       </build>
+               </profile>
+       </profiles>
+       
     <dependencies>
         <dependency>
             <groupId>portlet-api</groupId>


Reply via email to