Wednesday, July 14, 2010

Maven notes

How to use custom archetype catalog
mvn archetype:generate -DarchetypeCatalog=\
url_to_folder_containing_archetype-catalog_xml

Example:
mvn archetype:generate -DarchetypeCatalog=\
http://anonsvn.jboss.org/repos/weld/archetypes/tags/1.0.0-BETA1/

Output:
1: ... weld-jsf-servlet-minimal ...
2: ... weld-jsf-jee-minimal ...
3: ... weld-jsf-jee ...
Choose a number: (1/2/3):