2013-03-16 2 views
2

Я создал apklib, как показано здесь: https://code.google.com/p/maven-android-plugin/wiki/ApkLibОшибки при импорте собственного проекта из мавена

Так я создаю почтовый/apklib с этой командой

zip -r listviewanimations.apklib listviewanimations/ 

А затем развернуть на локальный мавенна как следовать

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 и top