|Home > Guides > Core Developers Guide > Struts Maven Archetypes|
Struts provides several Maven Archetypes that create working applications based on a template.
The following archetypes are available:
The Starter archetype creates a more featured application using several common technologies used in production applications.
The Portlet blank archetype creates a minimally populated JSR 168 portlet.
The Portlet database archetype creates a simple JSR 168 portlet that displays the contents of a database table.
From a working directory for your project, run the following command:
This table describes the parameters used above:
The id for the group the application belongs to. Usually is the root package for applications in your company, e.g. com.mycompany
The id for the project
The base Java package to use for generated source code. Defaults to
The group id of the archetype. Will always be
The id of the archetype
The version of the archetype
A list of remote repositories that contain the archetype. If deployed to the standard Maven repository or locally, this is optional
The Archetype will create a ready-run Struts project. Just run "mvn install" to build.