maven编译失败了Could not find artifact jdk.tools:jdk.tools🏺1.6 at specified path D:\Java/../lib/tools.jar -> [Help 1]

天池番薯 发布于 2017/03/21 16:02
阅读 553
收藏 0

[INFO] Building tensorflow-hadoop 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.608 s
[INFO] Finished at: 2017-03-21T16:01:03+08:00
[INFO] Final Memory: 12M/217M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project tensorflow-hadoop: Could not resolve dependencies for project org.tensorflow:tensorflow-hadoop🏺1.0-SNAPSHOT: Could not find artifact jdk.tools:jdk.tools🏺1.6 at specified path D:\Java/../lib/tools.jar -> [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/DependencyResolutionException

加载中
0
南浦的
南浦的

因为你jdk安装目录下的lib目录没有tools.jar 造成的.

具体原因是你在安装jdk的时候将jdk和jre2个解压路径放到了一个目录,后者覆盖了前者造成的.

解决办法,重新安装jdk...

环境变量中path,classPath JAVA_HOME也要配置正确

 

返回顶部
顶部