idea版本
引入Jar包2中方式
1、通过project引入
选在要引入的jar包路径,单击ok即可;
2、可以将外包jar包,放到 resources/libs/下;
在pom.xml中引入libs中的Jar包
<dependency>
<groupId>jp</groupId>
<artifactId>jp-api-sdk-dev-ding-open</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/resources/libs/jp-api-sdk-dev-ding-open-1.0.jar</systemPath>
</dependency>
如果将jar包放到libs中,想在打成jar包,把libs中的jar包打包,需要修改pom.xml文件
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configruation>
</plugin>