user3498116
user3498116

Reputation: 31

How to use maven archtype:generate with local archetype?

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

Answers (1)

Pramod S. Nikam
Pramod S. Nikam

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

Related Questions