1、外部依赖
jar包在项目中位置
<dependency>
<groupId>sigar</groupId>
<artifactId>sigar</artifactId>
<scope>system</scope>
<version>1.6.4</version>
<systemPath>${basedir}\src\lib\sigar-1.6.4.jar</systemPath>
</dependency>
外部依赖(库中 jar 包的位置)可以在 pom.xml文件中配置,配置的方法与其他依赖相同。
指定与库名同名的 groupId。
指定与库名同名的 artifactId。
指定 scope 为 system。
指定 systemPath 为库中 jar 包相对于项目的路径。