Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For those of us using Maven as a build system, we can use the Maven Archetype to create a new application.

Code Block

mvn archetype:create -DgroupId=be.realdolmen.struts2 -DartifactId=tutorial \
                     -DarchetypeGroupId=org.apache.struts \
                     -DarchetypeArtifactId=struts2-archetype-starter \
                     -DarchetypeVersion=2.0.11.2

The archetype command creates an application template. For more information, see Struts Maven ArchetypesFor directions on using the Struts 2 archetypes see the Struts 2 Maven Archetypes page.

Setting up from scratch

If for some reason the blank template or archetype doesn't work out, it's not so hard to setup a Struts 2 application from scratch. For details, see Simple Setup.

...