Thursday 21 August 2008

Project templates, archetypes

Often it is found at project inception stage people ponder over project structure and then manually create them.

Instead one could use standard templates or archtypes in Maven world.

Below are some ready to use templates for projects

http://docs.codehaus.org/display/MAVENUSER/Archetypes+List


 

ach archetype page should enforce the following pattern :

* Archetype name

* Command line to call the archetype

* If the archetype can be used in an existing projects directory

* A tree view of the resulting files

* Some additional information like the additional properties used by the plugin


To use an archetype:


mvn archetype:generate


Generate gives you a wizard that will walk you through the various choices.


or


mvn
org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create
-DgroupId= -DartifactId= -DarchetypeArtifactId= -DarchetypeGroupId=

No comments: