Missing artifact jdk.tools:jdk.tools:jar:1.8 pom.xml

在maven项目中出现下面错误信息:

Description Resource Path Location Type
Missing artifact jdk.tools:jdk.tools:jar:1.8    pom.xml    /markuser    line 2    Maven Dependency Problem

解决方法:

在POM.xml中添加以下依赖包:

        <dependency>
            <groupId>jdk.tools</groupId>
            <artifactId>jdk.tools</artifactId>
            <version>1.8</version>
            <scope>system</scope>
            <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
        </dependency>

原文地址:https://www.cnblogs.com/30go/p/8622505.html