ruoyi项目 引入 外部jar包 打包项目时
【代码】ruoyi项目 引入 外部jar包 打包项目时。
·
1.在pom文件的中加入一行属性
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.1.1.RELEASE</version>
<configuration>
<fork>true</fork>
<!-- 把includeSystemScope属性 设置为 true 再项目 打包时可以打到jar包中 -->
<includeSystemScope>true</includeSystemScope>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
更多推荐
已为社区贡献2条内容
所有评论(0)