Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/zp357252539/article/details/89429453
Local jar by adding to the project dependencies, need to increase the scope configuration, such as:
Where $ {basedir} refers to the project root
<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>