将本地的jar包打包maven中去
有些项目需要引入本地的jar包,所以在项目打包的时候需要我们把本地的jar包也打包进去
这时我们只需要在pom文件中引入即可
<!--用户中心sso-->
<dependency>
<groupId>com.unicom</groupId>
<artifactId>uac-sso-sdk</artifactId>
<version>20200111</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/uac-sso-sdk-20200111-jar-with-dependencies.jar
</systemPath>
</dependency>
在build中的plugins也需要加入
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>