scope為system的maven默認是不打包進去的。
網上查了很多解決方案,基本都是錯誤的,特別是中文社區,基本沒有說到點上的。配置resource的,更容易導致其他問題。
最后,翻到github上的
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>