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
如何解决?
该问题目前已解决,解决方案为本地仓库文件夹权限问题,将文件夹修改为Everyone完全控制,将仓库的包删除重新下载即可解决问题。