`
eyesmore
  • 浏览: 363881 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Missing artifact com.sun:tools:jar:1.5.0

阅读更多
Missing artifact com.sun:tools:jar:1.5.0

在eclipse中使用maven插件m2eclipse,总是提示:Missing artifact com.sun:tools:jar:1.5.0

网上找了些资料,原因主要是因为eclipse启动的时候使用的javaw.exe虚拟机是JRE中的,而tools.jar是在JDK下的,因此第一个解决办法是让eclipse指定JDK的虚拟机。

网上关于这个问题有两个解决方案:
1、指定eclipse的javaw.exe于JDK目录;
2、在pom.xml中增加tools.jar在1.5版本的依赖关系。

详见附件文档。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics