[转]【maven】解决Missing artifact jdk.tools:jdk.tools:jar:1.6

解决在pom.xml文件中出现的Missing artifact jdk.tools:jdk.tools:jar:1.6问题

<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官方文档有提到这个问题,详见Maven FAQ for adding dependencies to tools.jar

除此之外,可以手动这个tools到本地仓库,详情看这里-》http://www.cnblogs.com/gyjx2016/p/5888912.html

   然后直接,在引入即可

<dependency>
    <groupId>jdk.tools</groupId>
    <artifactId>jdk.tools</artifactId>
    <version>1.7</version>
</dependency>

 转自: https://www.cnblogs.com/gyjx2016/p/5925026.html

 

posted @ 2020-01-08 12:46  shuai7boy  阅读(1873)  评论(0编辑  收藏  举报