...
View the released archetypes in the central repository at ibiblio:
- http://wwwrepo1.ibibliomaven.org/maven2/org/apache/maven/archetypes/
- quickstart: creates a default pom.xml, the src and a test folders (including a default App.java/AppTest.java).
- site: quickstart + some filters + a default site structure. Site includes a second language (french). Note that the site archetype can only be run to create a new project, it can not be run after a project was initialized with another archetype.
- webapp: for creating web applications.
View the latest source code for Maven archetypes in the Subversion repository:
- http://svn.apache.org/repos/asf/maven/archetypearchetypes/trunk/maven-archetype-bundles/
How to use
To create a webapp file structure:
mvn archetype:create -DgroupId=mygroupid -DartifactId=artifactid -DarchetypeArtifactId=maven-archetype-webapp
...
Similarly, there is a <resource encoding="..."> attribute.
Examples
