Pages

Sunday, December 15, 2013

Generate an Android project using the amazing Maven Archetypes

So I can't seem to get over the convenience of using Maven Archetype for generating Android project. Does all the work for ya!

mvn archetype:generate \
  -DarchetypeArtifactId=android-quickstart \
  -DarchetypeGroupId=de.akquinet.android.archetypes \
  -DarchetypeVersion=1.0.10 \
  -DgroupId=your.company \
  -DartifactId=my-android-application

For more details and a thorough introduction to the concept of Archetypes:
http://maven.apache.org/guides/introduction/introduction-to-archetypes.html


P.S. Remember, android-maven-plugin version 3.6.0 is your friend! So edit the pom.xml generated and change the version to 3.6.0 (or higher).

No comments:

Post a Comment