THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
The blank web application in the distribution's apps
directory is meant as a template. Make a copy of "blank" and use the copy as the basis for your application.
Run the Maven Archetype
Code Block |
---|
mvn archetype:create -DgroupId=com.myCompany.mySystem \
-DartifactId=myWebApp \
-DarchetypeGroupId=org.apache.struts \
-DarchetypeArtifactId=struts2-archetype-starter \
-DarchetypeVersion=1.0-SNAPSHOT \
-DremoteRepositories=http://people.apache.org/maven-snapshot-repository
|
This will create the sample Web app template. For more information see Quickstart Using Maven 2 TODO
Setting up from scratch
If for some reason the blank template or archetype doesn't work for you, it's not so hard to setup a Struts 2 application from scratch. If you are interested, see Simple Setup.
...