jdk.tools: jdk.tools is a JAR file distributed with the JDK and can be added to a Maven project as follows:
<dependency>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
< version>1.7</version>
<scope>system</scope>
<systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>
See Maven FAQ for adding dependencies to
tools.jar Manually install tools.jar in the local warehouse, as follows
mvn install:install-file -DgroupId=jdk.tools -DartifactId=jdk.tools -Dpackaging=jar -Dversion=1.7 -Dfile=tools.jar -DgeneratePom=true
and then in pom. Add in xml:
<dependency>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
<version>1.6</version>
</dependency>
Reference: https://my.oschina.net/frankwu/blog/332873
Solve the Missing artifact jdk.tools:jdk.tools reported in the Maven project
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326955505&siteId=291194637
Recommended
Ranking