Book Image

Mastering Apache Maven 3

Book Image

Mastering Apache Maven 3

Overview of this book

Table of Contents (16 chapters)
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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
      |-res/values/strings.xml
      |-assets

To build the Android skeleton project, run the...