MAVEN项目错误:Missing artifact com.sun:tools:jar 1.5.0解决方法

MAVEN项目出现以下错误


所以将jdk1.7\lib\目录下的tools.jar拷贝到x:\maven\repository\com\sun\tools\1.5.0\目录下,并将tools.jar改名为tools-1.5.0.jar

在pom.xml中作如下配置:

<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0</version>
</dependency>


保存后,错误消失!


================================================
原文:http://blog.csdn.net/cyjch/article/details/51940242
作者:超越
超越的主页:http://blog.csdn.net/cyjch
================================================

猜你喜欢

转载自blog.csdn.net/cyjch/article/details/51940242