Maven archetype for java command line process
- Generate mvn archetype from project
mvn archetype:create-from-project
- Install archetype into local repository:
cd target/generated-sources/archetype
mvn install
- Use the archetype to generate projects:
mvn archetype:generate -DarchetypeCatalog=local
(You must specify package when asked from interactive maven)