If you are new to maven archetype
. do not worry. I would like to suggest you to create your archetype
from existing maven project which one standard for archetype
template. delete unnecessary files and folders. Just go to your project directory by cli. just run following command:
your-maven-project>mvn archetype:create-from-project
your-maven-project>cd target\generated-sources\archetype
...urces\archetype>mvn clean deploy
do not feel doubt about mvn archetype:create-from-project
actually its the magic command to generate archetype. you may customize generated archetype as your demand by googling. Now generate project by your own archetype
...urces\archetype>cd your-workspace-dir
your-workspace-dir>mvn archetype:generate -DarchetypeGroupId=<archetypeGroupId> -DarchetypeArtifactId=<archetypeArtifactId> -DarchetypeVersion=<archetypeVersion>
That's all. enjoy your own archetype
.