maven 故障解决

在eclipse中装上maven插件后,新建一个maven工程,会报错说 Missing indirectly referenced artifact com.sun:tools:jar:1.5.0:system google

解决办法

-vm
C:\Java\jre1.6.0\bin\
按照上面所说的,最后参数在eclipse.ini中可以写成这个样子:
-vmargs
-Xms128M
-Xmx512M
-XX:PermSize=64M
-XX:MaxPermSize=128M









The container 'Maven Dependencies' references non existing library 'D:\Program Files\Java\lib\tools.jar'



[color=orange解决办法 

uncheck the option "resolve dependencies from workspace projects" from the maven tab of eclipse.

项目名称->属性->maven 把resolve dependencies from workspace projects

前面勾去掉


[/color]

你可能感兴趣的:(java,eclipse,maven,Google,sun)