Archetypes

An archetype is a descriptor and a set of templates. There is two kind of archetypes: complete and partial.

A complete archetype represents a Maven 2 project with complete features. Eg. a class library, a desktop application, a web application.

A partial archetype represents an added feature to an existing Maven 2 project. Eg. using modello, using jetty.

The archetype is packaged in a jar file.

Archetypes can be created using the creation mecanism or can be handcrafted.

Descriptor

The archetype descriptor is an xml file defining:

  • the archetype name,
  • the properties needed by the templates,
  • the templates used to generate the project sorted by categories.

Templates

The templates are velocity template files. They are used to generate the sources of the project.