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

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>

posted @ 2017-12-26 10:52  武红明  阅读(188)  评论(0编辑  收藏  举报