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.