The information on this page is user-contributed. Its accuracy is not verified by the Maven team!
Links: Guide to creating archetypes, Plugin documentation
View the released archetypes in the central repository at ibiblio:
View the latest source code for Maven archetypes in the Subversion repository:
To create a webapp file structure:
mvn archetype:create -DgroupId=mygroupid -DartifactId=artifactid -DarchetypeArtifactId=maven-archetype-webapp
There is currently no way to escape expressions so that they are not filtered. See http://jira.codehaus.org/browse/ARCHETYPE-39
You can, however, prevent an entire file from being filtered:
<archetype> ... <resources> <resource filtered="false">src/main/resources/example/package.properties</resource> ... </resources> ... </archetype>
Similarly, there is a <resource encoding="..."> attribute.