maven 报Missing com.sun:tools:jar:1.X.X 最终解决方法


maven报错如下:

Missing:  
----------  
1) com.sun:tools:jar:1.5.0  
  
  Try downloading the file manually from the project website.


通用方法见网上的这篇文章 http://www.blogjava.net/hello-yun/archive/2011/11/21/364409.html


还不行的话: 

1.  windows->preferences->maven->installations  配置并勾选自己本机装的maven

2.  windows->preferences->maven->templates 将其中的两个tools.jar项配置成jdk的tools完整路径。

3. 右键项目->run as ->maven install 可编译打包

你可能感兴趣的:(maven 报Missing com.sun:tools:jar:1.X.X 最终解决方法)