Created
December 7, 2012 00:26
-
-
Save turugina/4229685 to your computer and use it in GitHub Desktop.
maven/android-maven-plugin for library project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<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/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>your.group.id</groupId> | |
<artifactId>your.library.id</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
<packaging>apklib</packaging> | |
<name>My Library</name> | |
<dependencies> | |
<dependency> | |
<groupId>com.google.android</groupId> | |
<artifactId>android</artifactId> | |
<version>1.6_r2</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.10</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<finalName>${project.artifactId}</finalName> | |
<!-- android create lib-project で作った場合は src/main/java じゃなくて src --> | |
<sourceDirectory>src</sourceDirectory> | |
<plugins> | |
<plugin> | |
<!-- See http://code.google.com/p/maven-android-plugin/ --> | |
<groupId>com.jayway.maven.plugins.android.generation2</groupId> | |
<artifactId>android-maven-plugin</artifactId> | |
<version>3.4.1</version> | |
<configuration> | |
<sdk> | |
<!-- platform or api level (api level 8 = platform 2.2)--> | |
<platform>4</platform> | |
</sdk> | |
</configuration> | |
<extensions>true</extensions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<source>1.5</source> | |
<target>1.5</target> | |
<encoding>UTF-8</encoding> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment