<!--添加的本地的外部jar包依赖-->
<dependency>
<groupId>com.ak.lzh</groupId>
<artifactId>项目名称</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>system</scope>
<systemPath>${project.basedir}\src\main\webapp\WEB-INF\lib\sdk_https.jar</systemPath>
</dependency>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>
<includeSystemScope>true</includeSystemScope>标签:
不加此配置,本地可以运行,因为本地可以再lib下找到外部包,但是服务器上jar中是没有的,加了这个标签后,maven打包时会将外部引入的jar包。