`

Missing artifact com.sun:tools:jar:1.5.0:system 解决方法

 
阅读更多

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics