版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zp357252539/article/details/89429453
通过本地添加jar到项目依赖,需要增加scope配置,例如:
其中${basedir}指的是项目的根目录
<dependency>
<groupId>com.sparklinglogic.smarts</groupId>
<artifactId>sl-rest-sdk</artifactId>
<version>1.5.1</version>
<scope>system</scope>
<systemPath>${basedir}/lib/sl-rest-sdk-1.5.1.jar</systemPath>
</dependency>