1
我是Maven的初學者。請考慮這一點。 我想爲我的Android項目使用Maven。對於我做的步驟按:Maven Android集成錯誤
- http://rgladwell.github.com/m2e-android/ 和
- http://code.google.com/a/eclipselabs.org/p/m2eclipse-android-integration/wiki/GettingStarted
我的Eclipse赫利俄斯的Android SDK,ADT-插件安裝修訂版20。另外我安裝了maven到eclipse插件。 我正在使用Windows 7(32位)。
這裏是父pom.xml中:
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<sdk>
<platform>15</platform>
</sdk>
<deleteConflictingFiles>true</deleteConflictingFiles>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
</configuration>
<extensions>true</extensions>
</plugin>
...它安裝的Android的Maven插件集成。
但與孩子pom.xml我收到錯誤。
孩子的pom.xml:
<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>GROUPID</groupId>
<artifactId>CHILDID</artifactId>
<version>1.0</version>
<packaging>apklib</packaging>
<parent> <!-- getting error here --->
<groupId>GROUPID</groupId>
<artifactId>ARTIID</artifactId>
<version>1.0</version>
<relativePath>..</relativePath>
</parent>
......
......
<plugins>
<plugin>
<artifactId>ID</artifactId>
<version>1.1</version>
<executions>
<execution>
<!-- getting error here --->
</execution>
</plugin>
</plugins>
+0