Monday, September 20, 2010

Types of Maven archetypes catalogs

Maven Archetype plug-in allows to publish available archetypes using the catalogs. To be exact four kinds of archetype catalogs are supported:

By default Archetype plug-in (Maven 2.2.1, Archetype Plug-in 2.0-alpha-5) uses local and remote repositories to list available artifacts. You can specify catalogs to use with -DarchetypeCatalog option:

mvn archetype:generate
-DarchetypeCatalog=internal,http://foo.com/archetype-catalog.xml

No comments:

Post a Comment