首页 > 编程语言 > 详细

打包时无法引入外部jar

时间:2021-04-29 10:05:16      阅读:26      评论:0      收藏:0      [点我收藏+]

有一些jar是我们自己引入的,但是本地开发的时候能找到,打包之后启动就提示找不到

技术分享图片

 

 

idea的引入方法网上有不多介绍

之后在pom文件里加上带scope的那个dependency

plugins里加上 <includeSystemScope>true</includeSystemScope>

<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.1.1.RELEASE</version>
<configuration>
<includeSystemScope>true</includeSystemScope>
<fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>

打包时无法引入外部jar

原文:https://www.cnblogs.com/michaelcnblogs/p/14716457.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!