[Transfer] [maven] solve Missing artifact jdk.tools:jdk.tools:jar:1.6

Missing artifact jdk.tools:jdk.tools:jar:1.6 solve problems in the pom.xml file

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

In maven official documents have referred to this issue, see the Maven FAQ for adding dependencies to tools.jar

In addition, the tools can manually to a local warehouse, details see here - " http://www.cnblogs.com/gyjx2016/p/5888912.html

   And then directly, in the introduction to

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

 Transfer:  https://www.cnblogs.com/gyjx2016/p/5925026.html

 

Guess you like

Origin www.cnblogs.com/shuai7boy/p/12165956.html