
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>
本文介绍了如何在pom.xml中引入系统级别的jar依赖,并详细解析了spring-boot-maven-plugin插件的配置,包括includeSystemScope参数的设置,以及如何指定主类和打包目标。

被折叠的 条评论
为什么被折叠?



