Maven项目缺少Jar包--jdk.toolss:jar:1.8
Error message:Missing artifact jdk.tools:jdk.tools:jar:1.8 [Maven Dependency Problem]
The container ‘Maven Dependencies‘ references non existing library ‘D:\.m2\repository\jdk\tools\jdk.tools\1.8\jdk.tools-1.8.jar‘
解决方法,需要引入Maven依赖,如下所示:
<dependency>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
<version>1.8</version>
<scope>system</scope>
<systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>
本文介绍了解决Maven项目中jdk.tools:jdk.tools:jar:1.8依赖缺失的方法。通过配置正确的Maven依赖,可以有效解决因缺少该依赖导致的构建错误。
762

被折叠的 条评论
为什么被折叠?



