blob: f3bed2ef0e8d1e9c4ec5763cad39370898a80dfc [file] [log] [blame]
Struts Archetypes - Blank
This directory contains the Struts Blank Archetype for Maven 2.
To use the archetype to create a blank project:
$ cd ~/projects
$ mvn archetype:create \
-DarchetypeGroupId=org.apache.struts \
-DarchetypeArtifactId=struts-archetype-blank \
-DarchetypeVersion=<version> \
-DgroupId=com.example \
-DpackageName=com.example.projectname \
If <version> ends in -SNAPSHOT, use the snapshot repo:
To build your new webapp:
$ cd my-webapp
$ mvn install
To start run the new webapp inplace via Jetty plugin:
$ mvn jetty:run
Browse to http://localhost:8080/my-webapp/
To start Tomcat and deploy your new webapp:
Modify pom.xml to provide the path to a local Tomcat 5.x installation:
$ mvn package cargo:start
(Optional) To build and install the archetype in your local repository:
$ svn co
$ cd struts-archetype-blank
$ mvn install