Intellij IDEA配置maven环境变量
有时候项目中会使用到tools.jar,一般我们会在maven的pom文件中配置:
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.8</version>
<scope>system</scope>
<systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>
大约 1 分钟