经常会用到,所以记录下
如下List-1所示,重点是scope和systemPath的值
- scope的值要设置为system
- systemPath的值,指向jar的路径
List-1
<dependency>
<groupId>com.xxx.xxx</groupId>
<artifactId>xxxx</artifactId>
<scope>system</scope>
<systemPath>${project.basedir}/lib/xxx.1.0.jar</systemPath>
</dependency>
Reference:
- https://www.cnblogs.com/523823-wu/p/7635358.html