求救:关于eclipse maven :Failed to execute goal org.apache.maven.plugins:maven-compil

.华子. 2013-02-17 04:19:09
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project wms: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] 错误: 读取C:\Users\Administrator\.m2\repository\net\sf\jasperreports\jasperreports\4.7.1\jasperreports-4.7.1.jar时出错; error in opening zip file
[ERROR] 错误: 读取C:\Users\Administrator\.m2\repository\jfree\jfreechart\1.0.12\jfreechart-1.0.12.jar时出错; error in opening zip file
[ERROR] 错误: 读取C:\Users\Administrator\.m2\repository\eclipse\jdtcore\3.1.0\jdtcore-3.1.0.jar时出错; error in opening zip file
[ERROR] 错误: 读取C:\Users\Administrator\.m2\repository\org\apache\poi\poi-ooxml-schemas\3.7\poi-ooxml-schemas-3.7.jar时出错; error in opening zip file
[ERROR] 错误: 读取C:\Users\Administrator\.m2\repository\org\codehaus\groovy\groovy-all\1.7.5\groovy-all-1.7.5.jar时出错; error in opening zip file
[ERROR] 警告: [options] 未与 -source 1.6 一起设置引导类路径
[ERROR] 5 个错误
[ERROR] 1 个警告
[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

这要是这几天换了开发环境 使用的64位的win7,eclipse和jdk都是32位的 因为之前查到32位的程序可以在64位上运行,希望各位前辈给出指导,我已经试过一些办法,网上查询加上自己乱搞无果才来求救的,麻烦各位了。
对了 它提示的那几个jar包在本地是有的
...全文
12175 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
grace_1451 2015-01-30
  • 打赏
  • 举报
回复
自己去下载之后 ,jar包要放在哪个目录下面啊?
oChenYang12345 2014-03-27
  • 打赏
  • 举报
回复
嗯,楼主说的太有道理了,maven自己在中央仓库下载的jar、pom等配置文件可能不完整,需要自己去下载。
震天888 2013-10-08
  • 打赏
  • 举报
回复
解决了一上午,原来是这个原因,我也重新删除再下载就OK了。stackoverflow上面没有一个回答能够解决这个问题。
zhu19774279 2013-03-14
  • 打赏
  • 举报
回复
如果出现“ error in opening zip file”这样的错误,多半这个包下载得有问题,虽然有jar文件,但是用解压软件是会报错的,建议删除重试。 另外maven有时会有这种情况也会报上面的错误:仓库设置了用户名密码,但是maven没有配置,正常情况maven应该提示没有权限,但有时maven不提示而直接下载jar,下载到一半却发现没有权限,这时会导致下载的jar不完整,所以这时应该检查配置文件。
  • 打赏
  • 举报
回复
太没有主动性了。。。
.华子. 2013-02-17
  • 打赏
  • 举报
回复
问题已经解决了 是由于jar的原因,我把有问题的jar包全部删除后,再使用maven重新下载,再处理些小问题OK了
.华子. 2013-02-17
  • 打赏
  • 举报
回复
自己先顶顶 ++人气

58,453

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧