Skip to content

Instantly share code, notes, and snippets.

@ljanzik
Created June 17, 2012 17:34
Show Gist options
  • Save ljanzik/2945148 to your computer and use it in GitHub Desktop.
Save ljanzik/2945148 to your computer and use it in GitHub Desktop.
Building Android App with Maven
<projectDescription>
<name>thoughtsonmobile-testapp</name>
<projects/>
<buildSpec>
<!-- added two adt build commands for full eclipse support -->
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments></arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments></arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
</buildCommand>
<buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name>
</buildCommand>
</buildSpec>
<natures>
<!-- added project nature for eclipse -->
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
mvn archetype:generate \
-DarchetypeArtifactId=android-quickstart \
-DarchetypeGroupId=de.akquinet.android.archetypes \
-DarchetypeVersion=1.0.8 \
-DgroupId=com.thoughtsonmobile \
-DartifactId=thoughtonmobile-testapp
[...]
<configuration>
[...]
<keystore>path/to/keystore</keystore>
<storepass>password</storepass>
<keypass>anotherOrMaybeTheSamePassword</keypass>
<arguments>
<argument>-sigalg</argument><argument>MD5withRSA</argument>
<argument>-digestalg</argument><argument>SHA1</argument>
</arguments>
</configuration>
[...]
<settings>
<profiles>
<profile>
<id>standard</id>
<properties>
<android.sdk.path>/path/to/android-sdk</android.sdk.path>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>standard</activeProfile>
</activeProfiles>
</settings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment