Sample POM for Maven Android Plugin 2.2.2
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>br.eti.fernandoribeiro.sample</groupId>
<artifactId>sample</artifactId>
<packaging>apk</packaging>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>android</groupId>
<artifactId>android</artifactId>
<version>2.1_r1</version> <!-- Replace with version in use -->
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory> <!-- Remove if not using ADT plugin for Eclipse -->
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>maven-android-plugin</artifactId>
<version>2.2.2</version>
<configuration>
<sdk>
<path>${env.ANDROID_HOME}</path>
<platform>2.1</platform> <!-- Replace with version in use -->
</sdk>
</configuration>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
</project>
http://developer.android.com/guide/developing/eclipse-adt.html
Advertisement