"Missing artifact com.sun:tools:jar:0" In POM.XML
Error Detail
Multiple annotations found at this line:
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://
maven.apache.org/xs
- Missing artifact com.sun:tools:jar:0
There could be multiple reasons for this issue.
1. Added Wrong MVN repository as mention below.(example below)
<!-- https://mvnrepository.com/artifact/net.sourceforge.cobertura/cobertura -->
<dependency>
<groupId>net.sourceforge.cobertura</groupId>
<artifactId>cobertura</artifactId>
<version>2.1.1</version>
<scope>test</scope>
</dependency>
2. Missing Tools: Jar :0 - (Change JRE to JDK )
In Eclipse IDE go to Window / Preferences / Java / Installed JREs point to a JDK installation.
Make sure you look into the folder C:/Program Files/Java/jdk1.8.0_version/lib instead of C:/Program Files (x86)/Java/jdk1.8.0_version/lib
Post a Comment