1、添加dependency
<dependency>
<groupId>com.tyilack</groupId>
<artifactId>test</artifactId>
<version>4.4</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/test-4.4.jar</systemPath>
</dependency>
2、原有plugin中天下configuration
<includeSystemScope>true</includeSystemScope>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
<mainClass>com.tyilack.assist.App</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>