`

eclipse下struts的maven项目报 Missing artifact com.sun:tools:jar错

阅读更多

如果项目中使用struts2和mave, 则pom文件可能如下:

 

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">


eclipse可能会报这个错误: http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd Missing artifact com.sun:tools:jar:1.5.0:system pom.xml

需要修改elipse.ini文件,在-vmargs上添加:
-vm
C:\Program Files\Java\jdk1.6.0_26\bin\javaw.exe
-vmargs
例如:-------------------------------------------------------------------------------------------
-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
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jdk1.6.0_26\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
------------------------------------------------------------------------------------------------

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics