Maven报错Missing artifact jdk.tools:jdk.tools:jar:1.7--转
生活随笔
收集整理的这篇文章主要介绍了
Maven报错Missing artifact jdk.tools:jdk.tools:jar:1.7--转
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
原文地址:http://blog.csdn.net/u013281331/article/details/40824707
在Eclipse中检出Maven工程,一直报这个错:“Missing artifact jdk.tools:jdk.tools:jar:1.7”
看整个pom.xml文件也不见其他异常。
而tools.jar包是JDK自带的,于是怀疑pom.xml中以来的包隐式依赖tools.jar包,而tools.jar并未在库中,
好比:当前工程依赖A包,而A包在开发打包过程依赖tools.jar包,现在A发布了,我们的工程依赖A包,所以我们应该在包依赖中加上tools.jar包;
这样分析后,问题就好解决了,直接在pom.xml中加上一个依赖项目:
<dependency><groupId>jdk.tools</groupId><artifactId>jdk.tools</artifactId><version>1.7</version><scope>system</scope><systemPath>${JAVA_HOME}/lib/tools.jar</systemPath></dependency>
问题得到解决。
转载于:https://www.cnblogs.com/davidwang456/p/5162368.html
总结
以上是生活随笔为你收集整理的Maven报错Missing artifact jdk.tools:jdk.tools:jar:1.7--转的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 定时任务调度系统设计
- 下一篇: An In-Depth Look at