1、maven打包时,如何把system本地的lib jar包 包括进来
在dependeies中配置如下
<dependency>
<groupId>com.tanzhishuju</groupId>
<artifactId>tz-sms-overseas-center</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/tz-sms-overseas-center-1.0.2-jar-with-dependencies.jar</systemPath>
</dependency>
在bulid中配置如下
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!--设置为true,以便把本地的system的jar也包括进来-->
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>