Missing artifact jdk.tools:jdk.tools:jar:1.6

Maven提供了一种只要在pom.xml中添加maven仓库的依赖,就可以方便的执行自动下载的方便项目管理方法。今天在用Eclipse打开Maven工程时报pom.xml文件丢失tools.jar文件,在maven官网提供了解决方法,只需要添加以下依赖进pom.xml文件即可:

`

	<groupId>jdk.tools</groupId>

	<artifactId>jdk.tools</artifactId>

	<version>1.8</version>

	<scope>system</scope>

	<systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>

`

以后遇到问题要多查官网。

原文地址:https://www.cnblogs.com/yumingle/p/6559462.html