直接将jar包拷贝到项目指定目录下,然后在pom文件中指定依赖类型为system。
<dependencies>
<dependency>
<groupId>xxx</groupId>
<artifactId>xxx</artifactId>
<version>6.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/libs/xxx-1.0.jar</systemPath>
</dependency>
</dependencies>
源地址:https://www.cnblogs.com/nuccch/p/6122938.html