将本地 jar 包,放到 resource 目录下,在 pom.xml 文件中加入如下依赖:
<dependency><groupId>com.hk</groupId><artifactId>examples</artifactId><version>1.0</version><scope>system</scope><systemPath>${project.basedir}/src/main/resources/lib/examples.jar</systemPath>
</dependency>
groupId:包名
artifactId:jar 包名称
version:版本默认 1.0
scope:默认 system
systemPath:jar 包路径