maven 依赖出错Missing artifact com.sun:tools:jar:1.8.0

错误信息:

Missing artifact com.sun:tools:jar:1.8.0

这个是缺乏jar引发。在pom文件加入如下依赖便可spa

<!-- tools -->
<dependency>
            <groupId>com.sun</groupId>
            <artifactId>tools</artifactId>
            <version>1.8.0</version>
            <scope>system</scope>
            <systemPath>${env.JAVA_HOME}/lib/tools.jar</systemPath>
            <optional>true</optional>
</dependency>io

相关文章
相关标签/搜索