domingo, 7 de abril de 2013

Create a maven archetype from a maven project

To convert a maven project to a maven archetype to reuse it as template in future projects follow these step:

Go to the base folder of the project to convert to an arcgetype and run:
archetype:create-from-project

This command will create all stuff for the new archetype. Navigate to basedir/target/generated-sources/archetype and execute:


mvn install

This commend will install the generated archetype to the local repository.


No hay comentarios:

Publicar un comentario