scope为system的maven默认是不打包进去的。
网上查了很多解决方案,基本都是错误的,特别是中文社区,基本没有说到点上的。配置resource的,更容易导致其他问题。
最后,翻到github上的spring-projects/spring-boot的issue里,终于找到了正确的解决之道。
很简单。
1 2 3 4 5 6 7 |
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope> true </includeSystemScope>
</configuration>
</plugin>
|
原文地址:https://www.cnblogs.com/javalinux/p/15597619.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。