Skip to content

Instantly share code, notes, and snippets.

@jaakla
Created December 8, 2014 12:31
Show Gist options
  • Save jaakla/312775a7632e2bf1d438 to your computer and use it in GitHub Desktop.
Save jaakla/312775a7632e2bf1d438 to your computer and use it in GitHub Desktop.
Maven config to use Nutiteq Maps SDK 3.0 in Android apps
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.nutiteq.advancedmap3</groupId>
<artifactId>com.nutiteq.advancedmap3</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<platform.version> 4.1.1.4
</platform.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<packaging>apk</packaging>
<name>AdvancedMap3</name>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>maven-version-plugin</artifactId>
<version>0.1.0</version>
</plugin>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.8.2</version>
<configuration>
<androidManifestFile>${project.basedir}/AndroidManifest.xml</androidManifestFile>
<assetsDirectory>${project.basedir}/assets</assetsDirectory>
<resourceDirectory>${project.basedir}/res</resourceDirectory>
<nativeLibrariesDirectory>${project.basedir}/libs-manual</nativeLibrariesDirectory>
<sourceDirectory>${project.basedir}/src</sourceDirectory>
<sdk>
<platform>19</platform>
</sdk>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
<downloadJavadocs>true</downloadJavadocs>
</configuration>
<extensions>true</extensions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
com.jayway.maven.plugins.android.generation2
</groupId>
<artifactId>
android-maven-plugin
</artifactId>
<versionRange>
[3.8.2,)
</versionRange>
<goals>
<goal>consume-aar</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<repositories>
<repository>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
<id>cloudbees-nutiteq-snapshot</id>
<name>Nutiteq SDK snapshot repository</name>
<url>http://repository-nutiteq.forge.cloudbees.com/snapshot/</url>
</repository>
<repository>
<id>cloudbees-nutiteq-release</id>
<name>Nutiteq SDK release repository</name>
<url>http://repository-nutiteq.forge.cloudbees.com/release/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>${platform.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.nutiteq</groupId>
<artifactId>nutiteq-sdk</artifactId>
<version>snapshot</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.nutiteq</groupId>
<artifactId>libnutiteq_maps_sdk</artifactId>
<version>snapshot</version>
<classifier>armeabi-v7a</classifier>
<!-- for Genymotion use "x86" classifier -->
<scope>runtime</scope>
<type>so</type>
</dependency>
<dependency>
<groupId>com.graphhopper</groupId>
<artifactId>graphhopper</artifactId>
<version>0.3</version>
<type>jar</type>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment