-
JDK 1.6+
-
Maven 3.0.3+
-
Android SDK r17+
-
Android NDK r8+
-
Local Maven Dependencies
Use Maven Android SDK Deployer to install all android related dependencies.
git clone https://github.com/mosabua/maven-android-sdk-deployer.git pushd maven-android-sdk-deployer export ANDROID_HOME=/path/to/android/sdk mvn install -P 4.1 popd
-
Create your key following the instructions at https://developer.android.com/guide/publishing/app-signing.html#cert
-
Create a profile in your settings.xml file in ~/.m2 like this
<settings>
<profiles>
<profile>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sign.keystore>/absolute/path/to/your.keystore</sign.keystore>
<sign.alias>youralias</sign.alias>
<sign.keypass>keypass</sign.keypass>
<sign.storepass>storepass</sign.storepass>
</properties>
</profile>
</profiles>
</settings>
- Invoke the building like this
mvn clean install