Android mobile applications with the archetype plugin

If you are an Android application developer who wants to start with a skeleton Android project, you can use the android-quickstart archetype developed by akquinet, which is shown in the following code:

$ mvn archetype:generate -B 
                 -DarchetypeGroupId=de.akquinet.android.archetypes
                 -DarchetypeArtifactId=android-quickstart
                 -DarchetypeVersion=1.0.4
                 -DgroupId=com.packt.samples
                 -DartifactId=my-android-app
                 -Dversion=1.0.0

This command produces the following skeleton project:

my-android-app |-pom.xml |-AndroidManifest.xml |-android.properties |-src/main/java/com/packt/samples/HelloAndroidActivity.java |-res/drawable-hdpi/icon.png |-res/drawable-ldpi/icon.png |-res/drawable-mdpi/icon.png |-res/layout/main.xml ...

Get Mastering Apache Maven 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.