maven自动打包pom文件

<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>lee</groupId>

<artifactId>lee</artifactId>

<version>3.3</version>

<packaging>apk</packaging>

<name>lee</name>

<properties>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<platform.version>19</platform.version>

<!--  安卓Api版本  -->

<android.plugin.version>3.8.2</android.plugin.version>

<android.sdk.path>${env.ANDROID_HOME}</android.sdk.path>

</properties>

<dependencies>

<!--

<dependency>

<groupId>android</groupId>

<artifactId>android</artifactId>

-->

<!--  <version>4.4.2</version>  -->

<!--  4.4.2_r2 安卓版本,和安装到本地库的包版本对应  -->

<!--  <scope>provided</scope>

</dependency>  -->

<dependency>

<groupId>com.google.android</groupId>

<artifactId>android</artifactId>

<version>4.1.1.4</version>

<scope>provided</scope>

</dependency>

</dependencies>

<build>

<finalName>${project.artifactId}</finalName>

<pluginManagement>

<plugins>

<plugin>

<groupId>com.jayway.maven.plugins.android.generation2</groupId>

<artifactId>android-maven-plugin</artifactId>

<version>${android.plugin.version}</version>

<extensions>true</extensions>

</plugin>

</plugins>

</pluginManagement>

<plugins>

<plugin>

<groupId>com.jayway.maven.plugins.android.generation2</groupId>

<artifactId>android-maven-plugin</artifactId>

<version>${android.plugin.version}</version>

<configuration>

<sdk>

<platform>${platform.version}</platform>

</sdk>

</configuration>

</plugin>

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-compiler-plugin</artifactId>

<version>3.1</version>

<!--

<configuration>

<source>1.7</source>

<target>1.7</target>

<encoding>${project.build.sourceEncoding}</encoding>

</configuration>

-->

</plugin>

</plugins>

</build>

</project>

你可能感兴趣的:(maven)