Missing artifact com.sun:tools:jar:1.5.0的解决方案
今天在用maven的时候遇到一个问题pom.xml提示Missing artifact com.sun:tools:jar:1.5.0
试过改eclipse的eclipse.ini文件,也试过在eclipse中改Installed JREs都不行。
后来google到这篇文章,就把问题解决了。
http://www.myexception.cn/system/1177046.html
pom.xml文件前边有个红叉,提示Missing artifact com.sun:tools:jar:1.5.0:system
解决办法:
添加<java.home>D:\Program Files\Java\jdk1.6.0_26\bin\javaw.exe</java.home>
如:
<properties>
<java.version>1.6</java.version>
<java.encoding>UTF-8</java.encoding>
<cistus.version>1.0-Beta6.4</cistus.version>
<spring-version>3.0.5.RELEASE</spring-version>
<java.home>D:\Program Files\Java\jdk1.6.0_26\bin\javaw.exe</java.home>
<spring-data-redis-version>1.0.1.RELEASE</spring-data-redis-version>
<mybatis-version>3.1.1</mybatis-version>
<mybatis-spring>1.1.1</mybatis-spring>
<tuscany.version>2.0-Beta3</tuscany.version>
<maven-util-version>1.0</maven-util-version>
<jetty-version>6.1.26</jetty-version>
<project.build.sourceEncoding>${java.encoding}</project.build.sourceEncoding>
<gpg.skip>true</gpg.skip>
</properties>