本文主要是介绍Missing artifact com.sun:tools:jar:1.5.0:system,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Missing artifact com.sun:tools:jar:1.5.0:system 解决方法
转:http://52347.iteye.com/blog/1773931
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>
如果再不行,找到eclipse安装路径,修改eclipse.ini文件
在文件中添加两句话如:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
-vm
D:\Program Files\Java\jdk1.6.0_26\bin\javaw.exe
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
注:红色部分为添加部分
再不行的话,看看你的环境变量吧:
JAVA_HOME D:\Program Files\Java\jdk1.6.0_26
PATH %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
CLASSPATH .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
这篇关于Missing artifact com.sun:tools:jar:1.5.0:system的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!