Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated links to archetypes svn and repository

...

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:

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