码迷,mamicode.com
首页 > 编程语言 > 详细

Maven报错Missing artifact jdk.tools:jdk.tools:jar:1.7

时间:2017-12-26 12:00:07      阅读:1342      评论:0      收藏:0      [点我收藏+]

标签:body   gpo   分享图片   tools   blog   目的   分享   style   alt   

1、eclipse中Maven项目的pom文件报错:

技术分享图片

 

2、解决方法:

     

直接在pom.xml中加上一个依赖项目:

<dependency>
      <groupId>jdk.tools</groupId>
      <artifactId>jdk.tools</artifactId>
     <version>1.7</version>
     <scope>system</scope>
      <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>

Maven报错Missing artifact jdk.tools:jdk.tools:jar:1.7

标签:body   gpo   分享图片   tools   blog   目的   分享   style   alt   

原文地址:https://www.cnblogs.com/hongming-blogs/p/8116885.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!