2013-03-16 58 views
2

導入自己的項目,我已經創建了一個apklib爲如下所示:https://code.google.com/p/maven-android-plugin/wiki/ApkLib錯誤而從行家

所以我創建ZIP/apklib用這個命令

zip -r listviewanimations.apklib listviewanimations/ 

,然後部署到本地Maven作爲遵循

mvn org.apache.maven.plugins:maven-install-plugin:2.4:install-file -DgroupId=com.jmanzano.animations -Dfile=listviewanimations.apklib -DartifactId=library -Dversion=1 -Dpackaging=apklib 

現在,添加依賴關係到我的項目

<dependency> 
     <groupId>com.jmanzano.animations</groupId> 
     <artifactId>library</artifactId> 
     <version>1</version> 
     <type>apklib</type> 
    </dependency> 

但是當我鍵入

maven clean package 

我得到這個錯誤

[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android- maven-plugin:3.4.0:generate-sources (default-generate-sources) on project com-parkuik- android: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.4.0:generate-sources  failed: Cannot read XML from:  file:/Users/javiermanzanomorilla/IdeaProjects/parkuik/app/target/unpack/apklibs/com.jmanzano.animations_library_apklib_1/AndroidManifest.xml; /Users/javiermanzanomorilla/IdeaProjects/parkuik/app/target/unpack/apklibs/com.jmanzano.animations_library_apklib_1/AndroidManifest.xml (No such file or directory) -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[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 read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException 
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command 
[ERROR] mvn <goals> -rf :com-parkuik-android 

希望這是很清楚,你可以幫我

回答

0

解決了,我只是在錯誤的郵編。它有一個src和頂部之間的文件夾