Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

maven archetype for an android project

The following options are listed on a maven archetype:generate

19: remote -> android-quickstart (-)
20: remote -> android-release (-)
21: remote -> android-with-test (-)

There is one more plugin available at http://code.google.com/p/maven-android-plugin/

What would be the right archetype / plug-in to use for Android 3.1 application development?

like image 302
Joe Avatar asked Jul 07 '11 11:07

Joe


People also ask

How do I know my Maven project archetype?

In the artifact's root directory, there is a pom. xml file of the archetype. You can see the packaging maven-archetype . You can customize build of your archetype here as with any other pom.

What is Maven archetype for spring boot?

A Maven archetype is an abstraction of a kind of a project that can be instantiated into a concrete customized Maven project. In short, it's a template project template from which other projects are created.


1 Answers

The archetype to use depends on the size and purpose of your project. The different archetypes are similar to creating regular Android projects where:

  • quickstart creates something similar to an Android application project but does not create any tests.
  • with-test is similar to creating an Android application project and a corresponding test project
  • project release - expands the with-test archetype and also supplies tools to let maven help out with zipalign, proguard and signing of your application

For anything relatively complex I would recommend going with the release configuration even though it requires some extra settings since it manages all stages of building, testing and releasing. For prototyping or minor projects the quick-start archetype may be sufficient. With-test can be used if you want to maintain more manual control of the release process but still want a maven managed test project.

If this is the first time you are using the Maven Android plugin I would suggest creating a small experimental project with the quick-start archetype to get the feel for it. Then use a release type project for your application.

like image 142
BMB Avatar answered Oct 28 '22 19:10

BMB