Maven: The Complete Reference
14.4. Creating New Projects with the Android Maven Archetypes
When starting a fresh project it is easy to use the Maven Archetype Plugin to create a skeleton to start working with. Fortunately multiple archetypes for Android projects are available.
You can create a new android-quickstart project, which is similar to the helloflashlight example on the command line with
mvn archetype:generate \ -DarchetypeArtifactId=android-quickstart \ -DarchetypeGroupId=de.akquinet.android.archetypes \ -DarchetypeVersion=1.0.6 \ -DgroupId=your.company \ -DartifactId=my-android-application
Other archetypes available are an Android project including test
execution with the archetypeArtifactId
and a project with release process configuration
Many developmemt environments have a visual integration of creating new projects with a Maven archetype, so you can use that instead of the command line.