Maven启动时报错:org.apache.maven.plugins:maven-compiler-plugin:2.3.2

Eclipse导入的Maven项目在install时报错,如下:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jpress-commons: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] 错误: 读取F:\Java\m2\repository\org\jsoup\jsoup\1.9.2\jsoup-1.9.2.jar时出错; error in opening zip file
[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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :jpress-commons

如何解决?

阅读 10.1k
3 个回答

该问题目前已解决,解决方案为本地仓库文件夹权限问题,将文件夹修改为Everyone完全控制,将仓库的包删除重新下载即可解决问题。

提示是jsoup的jar包出问题,把这个包所在的文件夹删除,重新install试试。

你们问问题的时候可以看一下错误 再提问好不好

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏