Original address: http://blog.csdn.net/u013281331/article/details/40824707
Checking out the MAVEN project in Eclipse, has been reporting this error: "Missing artifact jdk.tools:jdk.tools:jar:1.7"
See the entire pom.xml file and see other exceptions.
And the Tools.jar package is the JDK comes with, so suspect Pom.xml since the Baoyin-type dependency Tools.jar package, and Tools.jar is not in the library,
Like: The current project depends on a package, and a package in the development of the packaging process depends on the Tools.jar package, now a released, our project relies on a package, so we should add Tools.jar package in the package dependency;
After this analysis, the problem is solved, directly in the pom.xml to add a dependent project:
<Dependency> <groupId>Jdk.tools</groupId> <Artifactid>Jdk.tools</Artifactid> <version>1.7</version> <Scope>System</Scope> <Systempath>${java_home}/lib/tools.jar</Systempath> </Dependency>
Problem solved.
Maven error missing artifact jdk.tools:jdk.tools:jar:1.7--turn