1.本地下载,在resource下,新建lib,保存本地jar包
2.在pom.xml引入依赖。
<dependency>
<groupId></groupId>
<artifactId></artifactId>
<version></version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/jave-1.0.2.jar</systemPath>
</dependency>
3.在maven插件进行配置
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
------------------------------分割---------------------------------------
使用maven命令将第三方jar包导入到本地仓库
mvn install:install-file -Dfile=D:\Desktop\taobao-sdk-java-daily_bg_type_111815_9\taobao-sdk-java-daily_bg_type_111815-20200805.jar -DgroupId=com.aliyun -DartifactId=taobao-sdk-java-daily -Dversion=111815.20200805 -Dpackaging=jar
之后在项目pom中引入
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>taobao-sdk-java-daily</artifactId>
<version>111815.20200805</version>
</dependency>