Reputation: 31
I have a local defined archetype. The problem is that this localy defined archetype is not listed, when i call mvn archetype:generate. What must i do to enable maven to use my own archetype?
Upvotes: 2
Views: 559
Reputation: 4539
execute it as
mvn archetype:generate -DarchetypeCatalog=local
also mention it properly like below:
$ mvn archetype:generate -DgroupId=org.sonatype.mavenbook \
-DartifactId=simple \
-Dpackage=org.sonatype.mavenbook \
-Dversion=1.0-SNAPSHOT
Upvotes: 1