Maven中打包scope为system的Jar包

maven中打包时候想将本地jar打包进jar,却发现始终打包不进去,近百度发现下面的解决方法,记录一下。

<plugin>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-maven-plugin</artifactId>
  <configuration>
    <includeSystemScope>true</includeSystemScope>
  </configuration>
</plugin>

只需要加入的这个插件,配置includeSystemScope属性就行了

原文地址:https://www.cnblogs.com/cxyc/p/14185889.html