pom.xml中引入三方jar:
<dependency>
<groupId>test</groupId>
<artifactId>test(名字可以自己定)</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>C:/lib/test.jar 本地jar包的绝对路径</systemPath>
</dependency>
修改plugin:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
<mainClass>com.vincent.App</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>