Saturday, 24 August 2013

android-maven-plugin Error on Build

android-maven-plugin Error on Build

i need to build an android project using maven, i have managed to
configure everything but i guess this is something missing as i encounter
this issue:
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 35.303s
[INFO] Finished at: Sat Aug 24 04:02:27 GMT 2013
[INFO] Final Memory: 28M/68M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
com.jayway.maven.plugins.android.generation2:andr
oid-maven-plugin:3.6.0:generate-sources (default-generate-sources) on
project mo
bile-widgets-android: Execution default-generate-sources of goal
com.jayway.mave
n.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources
failed
: Error reading
C:\Users\user1\Desktop\adt-bundle-windows\tools\source.propertie
s -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutio
nException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
ADT version 22, Android Target Level API 10, JRE version 1.6
mvn -version output:
C:\src>mvn -version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19
13:51:
28+0000)
Maven home: C:\JavaLibs\apache-maven-3.0.5\bin\..
Java version: 1.6.0_33, vendor: Sun Microsystems Inc.
Java home: C:\Program Files (x86)\Java\jdk1.6.0_33\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
my pom build content:
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<extensions>true</extensions>
<version>3.6.0</version>
<configuration>
<sdk>
<platform>10</platform>
</sdk>
</configuration>
</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.1.1,)
</versionRange>
<goals>
<goal>
generate-sources
</goal>
<goal>proguard</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
while googling the similar issue was produced using the maven android
compiler below the 3.6.0, on m2 folder i have the 3.6.0 which makes me
really confused about this issue.
any help is much appreciated.

No comments:

Post a Comment