打包将maven仓库以外的jar 打进来
pom
<dependency>
<groupId>cn.fisok</groupId>
<artifactId>pdman</artifactId>
<version>v1.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/lib/pdman-v1.0.0.jar</systemPath>
</dependency>
上边 使用 ${project.basedir}/src/main/lib/pdman-v1.0.0.jar 和 system 将 本地 的pdman jar 加载进来,但在打包的时候将它打进jar中去就需要在pom中加下边这个配置
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
<!-- 是否限制解压缩 -->
<executable>false</executable>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
需要在 plugin 中加上这段话
<configuration>
<includeSystemScope>true</includeSystemScope>
<!-- 是否限制解压缩 -->
<executable>false</executable>
</configuration>