Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/221.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 从maven导入自己的项目时出错_Java_Android_Maven_Android Maven Plugin - Fatal编程技术网

Java 从maven导入自己的项目时出错

Java 从maven导入自己的项目时出错,java,android,maven,android-maven-plugin,Java,Android,Maven,Android Maven Plugin,我创建了一个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 -Da

我创建了一个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>
我得到这个错误

[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
[ERROR]无法执行目标com.jayway.maven.plugins.android.generation2:android-maven插件:3.4.0:generate sources(默认生成源代码)在project com parkuik上-android:Execution默认生成目标com.jayway.maven.plugins.android.generation2:android maven插件:3.4.0:generate sources失败:无法从以下位置读取XML:文件:/Users/javiermanzanomorilla/IdeaProjects/parkuik/app/target/unpack/apklibs/com.jmanzano.animations\u library\u apklib\u 1/AndroidManifest.xml/Users/javiermanzanomorilla/IdeaProjects/parkuik/app/target/unpack/apklibs/com.jmanzano.animations\u library\u apklib\u 1/AndroidManifest.xml(无此类文件或目录)->[帮助1]
[错误]
[错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。
[错误]使用-X开关重新运行Maven以启用完整调试日志记录。
[错误]
[错误]有关错误和可能的解决方案的更多信息,请阅读以下文章:
[错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[错误]
[错误]纠正问题后,可以使用命令恢复生成
[错误]mvn-rf:com parkuik android

希望它足够清晰,您可以帮助我解决,我只是创建了一个错误的拉链。它在src和top之间有一个文件夹

[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