Search code examples
maven-2struts-1maven-archetype

Create a Maven 2 project with Struts 1 archetype


I would like to create a web project using Maven 2 + Struts 1. Would someone provide me some tutorial or a website outlining the steps? Thank you. ;)


Solution

  • There is a Struts 1 Blank Archetype for Maven 2:

    $ mvn archetype:create                                \
          -DarchetypeGroupId=org.apache.struts            \
          -DarchetypeArtifactId=struts-archetype-blank    \
          -DarchetypeVersion=1.3.5                        \
          -DgroupId=com.example                           \
          -DpackageName=com.example.projectname           \
          -DartifactId=my-webapp