解决在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

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

除此之外,可以手动这个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

 

相关文章:

  • 2021-09-20
  • 2021-12-29
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
猜你喜欢
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2021-06-17
相关资源
相似解决方案