Skip to content

Instantly share code, notes, and snippets.

@sourcerebels
Created March 24, 2012 06:12
Show Gist options
  • Save sourcerebels/2178921 to your computer and use it in GitHub Desktop.
Save sourcerebels/2178921 to your computer and use it in GitHub Desktop.
Maven > Install > Android > Maps
#!/bin/bash
#
# Run inside Maven project directory.
#
REVISION=$1
JAR=${ANDROID_HOME}/add-ons/addon-google_apis-google-${REVISION}/libs/maps.jar
VERSION=${REVISION}_r1
echo "Revision: $REVISION"
echo "Jar: $JAR"
echo "Version: $VERSION"
if [ -f $JAR ]; then
mvn install:install-file \
-Dfile=$JAR \
-DgroupId=com.google.android.maps \
-DartifactId=maps \
-Dversion=$VERSION \
-Dpackaging=jar
else
echo "Error. File $JAR does not exists"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment