Eclipse maven has following error:
Missing artifact com.sun:tools:jar:1.5.0
Solution:
PS: here, <profiles> and <dependencies> must be sepreated, or it cant solve the problem.
Missing artifact com.sun:tools:jar:1.5.0
Solution:
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <java.home>D:\Soft\Java\jdk1.6.0_29</java.home>
- </properties>
- <profiles>
- <profile>
- <id>default-tools.jar</id>
- <activation>
- <property>
- <name>java.vendor</name>
- <values>Sun.Microsystems Inc.</values>
- </property>
- </activation>
- </profile>
- </profiles>
- <dependencies>
- <dependency>
- <groupId>com.sun</groupId>
- <artifactId>tools</artifactId>
- <version>1.5.0</version>
- <scope>system</scope>
- <systemPath>${java.home}/lib/tools.jar</systemPath>
- </dependency>
- </dependencies>
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <java.home>D:\Soft\Java\jdk1.6.0_29</java.home> </properties> <profiles> <profile> <id>default-tools.jar</id> <activation> <property> <name>java.vendor</name> <values>Sun.Microsystems Inc.</values> </property> </activation> </profile> </profiles> <dependencies> <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.5.0</version> <scope>system</scope> <systemPath>${java.home}/lib/tools.jar</systemPath> </dependency> </dependencies>
PS: here, <profiles> and <dependencies> must be sepreated, or it cant solve the problem.