lyb825000
2016-01-08 09:08
采纳率: 50%
浏览 6.9k
已采纳

maven 哪个大神帮看看在用mvn导项目时出现的这个错误是怎么回事

Failed to parse plugin descriptor for org.apache.maven.plugins:maven-enforcer-plugin:1.0-beta-1 (C:\Users\liangyab.m2\repository\org\apache\maven\plugins\maven-enforcer-plugin\1.0-beta-1\maven-enforcer-plugin-1.0-beta-1.jar): error in opening zip file -> [Help 1
哪个大神帮看看在用mvn导项目时出现的这个错误是怎么回事

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

5条回答 默认 最新

  • kebab_metz1111 2016-01-08 09:24
    已采纳

    把对应的jar包删掉再重新编译吧

    已采纳该答案
    打赏 评论
  • 兔子托尼啊 2016-01-08 09:12
    打赏 评论
  • lyb825000 2016-01-08 09:46

    Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project ups_sapsmeter_common: Compilation failure
    [ERROR] Failure executing javac, but could not parse the error:
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\dbunit\dbunit\2.4.7\dbunit-2.4.7.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\xstream\1.3.1\xstream-1.3.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\unitils-core\3.1\unitils-core-3.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\ognl\2.6.9\ognl-2.6.9.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\slf4j\slf4j-jcl\1.5.3\slf4j-jcl-1.5.3.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\easymock\easymock\2.4\easymock-2.4.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\oracle\classes12\8.1.7\classes12-8.1.7.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\apache\struts\struts-core\1.3.8\struts-core-1.3.8.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\apache\struts\struts-el\1.3.8\struts-el-1.3.8.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\apache\struts\struts-extras\1.3.8\struts-extras-1.3.8.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\apache\struts\struts-taglib\1.3.8\struts-taglib-1.3.8.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\wpa\wpa-layout-manager\4.1.1\wpa-layout-manager-4.1.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\wpa\wpa-struts-core\4.1.1\wpa-struts-core-4.1.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\wpa\wpa-struts-environment-plugin\4.1.1\wpa-struts-environment-plugin-4.1.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\wpa\hpweb-core\4.1.2\hpweb-core-4.1.2.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\ibatis\2.3.4.726\ibatis-2.3.4.726.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\j2ssh-core\0.2.9\j2ssh-core-0.2.9.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\j2ssh-common\0.2.9\j2ssh-common-0.2.9.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\lineargs\1.0\lineargs-1.0.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\aspectj\aspectjweaver\1.5.4\aspectjweaver-1.5.4.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\commons-dbcp\commons-dbcp\1.2.2\commons-dbcp-1.2.2.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\commons-el\commons-el\1.0\commons-el-1.0.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\commons-fileupload\commons-fileupload\1.2.1\commons-fileupload-1.2.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\commons-io\commons-io\1.1\commons-io-1.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring\2.5.1\spring-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-aop\2.5.1\spring-aop-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-context\2.5.1\spring-context-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-context-support\2.5.1\spring-context-support-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-core\2.5.1\spring-core-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-jdbc\2.5.1\spring-jdbc-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-orm\2.5.1\spring-orm-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-test\2.5.1\spring-test-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-tx\2.5.1\spring-tx-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-web\2.5.1\spring-web-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\commons-lang\commons-lang\2.4\commons-lang-2.4.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\asm\asm\1.5.3\asm-1.5.3.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\asm\asm-attrs\1.5.3\asm-attrs-1.5.3.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\jaxen\jaxen\1.1.1\jaxen-1.1.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\commons-configuration\commons-configuration\1.5\commons-configuration-1.5.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\hibernate\hibernate\3.2.5.ga\hibernate-3.2.5.ga.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\commons-beanutils\1.7.0\commons-beanutils-1.7.0.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\apache\axis\axis\1.4\axis-1.4.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\apache\axis\axis-jaxrpc\1.4\axis-jaxrpc-1.4.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\apache\axis\axis-ssl\1.4\axis-ssl-1.4.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\commons-discovery\commons-discovery\0.2\commons-discovery-0.2.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\hp\apsmeter-hppwebservice\2.0\apsmeter-hppwebservice-2.0.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\javax\servlet\servlet-api\2.3\servlet-api-2.3.jar 时出错;error in opening zip file
    [ERROR] 47 错误
    [ERROR] -> [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/MojoFailureException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn -rf :ups_sapsmeter_common

    打赏 评论
  • lyb825000 2016-01-08 09:46

    Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project ups_sapsmeter_common: Compilation failure
    [ERROR] Failure executing javac, but could not parse the error:
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\dbunit\dbunit\2.4.7\dbunit-2.4.7.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\xstream\1.3.1\xstream-1.3.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\unitils-core\3.1\unitils-core-3.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\ognl\2.6.9\ognl-2.6.9.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\slf4j\slf4j-jcl\1.5.3\slf4j-jcl-1.5.3.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\easymock\easymock\2.4\easymock-2.4.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\oracle\classes12\8.1.7\classes12-8.1.7.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\apache\struts\struts-core\1.3.8\struts-core-1.3.8.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\apache\struts\struts-el\1.3.8\struts-el-1.3.8.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\apache\struts\struts-extras\1.3.8\struts-extras-1.3.8.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\apache\struts\struts-taglib\1.3.8\struts-taglib-1.3.8.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\wpa\wpa-layout-manager\4.1.1\wpa-layout-manager-4.1.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\wpa\wpa-struts-core\4.1.1\wpa-struts-core-4.1.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\wpa\wpa-struts-environment-plugin\4.1.1\wpa-struts-environment-plugin-4.1.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\wpa\hpweb-core\4.1.2\hpweb-core-4.1.2.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\ibatis\2.3.4.726\ibatis-2.3.4.726.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\j2ssh-core\0.2.9\j2ssh-core-0.2.9.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\j2ssh-common\0.2.9\j2ssh-common-0.2.9.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\lineargs\1.0\lineargs-1.0.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\aspectj\aspectjweaver\1.5.4\aspectjweaver-1.5.4.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\commons-dbcp\commons-dbcp\1.2.2\commons-dbcp-1.2.2.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\commons-el\commons-el\1.0\commons-el-1.0.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\commons-fileupload\commons-fileupload\1.2.1\commons-fileupload-1.2.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\commons-io\commons-io\1.1\commons-io-1.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring\2.5.1\spring-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-aop\2.5.1\spring-aop-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-context\2.5.1\spring-context-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-context-support\2.5.1\spring-context-support-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-core\2.5.1\spring-core-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-jdbc\2.5.1\spring-jdbc-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-orm\2.5.1\spring-orm-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-test\2.5.1\spring-test-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-tx\2.5.1\spring-tx-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\springframework\spring-web\2.5.1\spring-web-2.5.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\commons-lang\commons-lang\2.4\commons-lang-2.4.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\asm\asm\1.5.3\asm-1.5.3.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\asm\asm-attrs\1.5.3\asm-attrs-1.5.3.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\jaxen\jaxen\1.1.1\jaxen-1.1.1.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\commons-configuration\commons-configuration\1.5\commons-configuration-1.5.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\hibernate\hibernate\3.2.5.ga\hibernate-3.2.5.ga.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\ucs\commons-beanutils\1.7.0\commons-beanutils-1.7.0.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\apache\axis\axis\1.4\axis-1.4.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\apache\axis\axis-jaxrpc\1.4\axis-jaxrpc-1.4.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\org\apache\axis\axis-ssl\1.4\axis-ssl-1.4.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\commons-discovery\commons-discovery\0.2\commons-discovery-0.2.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\com\hp\apsmeter-hppwebservice\2.0\apsmeter-hppwebservice-2.0.jar 时出错;error in opening zip file
    [ERROR] 错误:读取 C:\Users\liangyab.m2\repository\javax\servlet\servlet-api\2.3\servlet-api-2.3.jar 时出错;error in opening zip file
    [ERROR] 47 错误
    [ERROR] -> [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/MojoFailureException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn -rf :ups_sapsmeter_common

    打赏 评论
  • kebab_metz1111 2016-01-08 10:00

    你看看 C:\Users\liangyab.m2\repository这个路径下有文件吗?

    打赏 评论

相关推荐 更多相似问题