Author: wsmoak
Date: Sun Mar 5 15:25:34 2006
New Revision: 383434
URL: http://svn.apache.org/viewcvs?rev=383434&view=rev
Log:
Added Cargo plugin configuration. After using the archetype to create a new
project, you can build and deploy the webapp with 'mvn package cargo:start'.
Modified:
struts/sandbox/trunk/archetypes/shale-blank/README.txt
struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/pom.xml
Modified: struts/sandbox/trunk/archetypes/shale-blank/README.txt
URL:
http://svn.apache.org/viewcvs/struts/sandbox/trunk/archetypes/shale-blank/README.txt?rev=383434&r1=383433&r2=383434&view=diff
==============================================================================
--- struts/sandbox/trunk/archetypes/shale-blank/README.txt (original)
+++ struts/sandbox/trunk/archetypes/shale-blank/README.txt Sun Mar 5 15:25:34
2006
@@ -26,10 +26,25 @@
$ cd projectname
$ mvn package
+To start Tomcat 5.5 and deploy your webapp:
+
+ $ mvn cargo:start
+
+ Open a browser and visit http://localhost:8080/projectname
Prerequisites
-------------
+ Maven 2 from http://maven.apache.org
+
+Cargo Configuration
+-------------------
+
+ The Cargo plugin is configured to download Apache Tomcat 5.5.15.
+
+ To use a locally installed version, in pom.xml,
+ 1. Uncomment the <home> element and change the path
+ 2. Remove the <zipUrlInstaller> section.
Other Issues
------------
Modified:
struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/pom.xml
URL:
http://svn.apache.org/viewcvs/struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/pom.xml?rev=383434&r1=383433&r2=383434&view=diff
==============================================================================
---
struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/pom.xml
(original)
+++
struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/pom.xml
Sun Mar 5 15:25:34 2006
@@ -68,6 +68,26 @@
</dependencies>
<build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.cargo</groupId>
+ <artifactId>cargo-maven2-plugin</artifactId>
+ <version>0.1</version>
+ <configuration>
+ <container>
+ <containerId>tomcat5x</containerId>
+ <!--home>C:/java/apache-tomcat-5.5.15</home-->
+ <zipUrlInstaller>
+
<url>http://www.apache.org/dist/tomcat/tomcat-5/v5.5.15/bin/apache-tomcat-5.5.15.zip</url>
+
<installDir>${project.build.directory}/tomcat-zip</installDir>
+ </zipUrlInstaller>
+ </container>
+ <configuration>
+ <dir>${project.build.directory}/tomcat</dir>
+ </configuration>
+ </configuration>
+ </plugin>
+ </plugins>
<resources>
<resource>
<directory>src/main/resources/</directory>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]