Use
mvn archetype:create-from-project
to create an artefact from an existing project. Have a look in the target folder, where you’ll find the new artefact.

mvn archetype:create-from-project
to create an artefact from an existing project. Have a look in the target folder, where you’ll find the new artefact.