1.把jar放入resources或者新建lib文件夹放入其中
2.添加pom.xml配置
<dependency>
<groupId>test</groupId>
<artifactId>test-1.02</artifactId>
<version>1.02</version>
<scope>system</scope>
<systemPath>src/main/resources/test.jar</systemPath>
</dependency>