DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Roger has posted 34 posts at DZone. View Full User Profile

Command To Generate An Archetype In Maven

  • submit to reddit
        // The command to generate your archetype once it's been installed in the repo

mvn archetype:generate -DgroupId=com.yourcompany -DartifactId=archetypetest -Dversion=1.0-SNAPSHOT -DpackageName=com.yourcompany -DarchetypeGroupId=com.yourcompany.archetype -DarchetypeArtifactId=the-name-of-your-archetype -DarchetypeVersion=1.0-SNAPSHOT -DinteractiveMode=false