使用spring-boot-maven-plugin排除指定的包
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
<excludeGroupIds>
org.apache.solr
</excludeGroupIds>
</configuration>
</plugin>
这样在打包的时候org.apache.solr就不会参与打包了。
本文介绍如何使用 spring-boot-maven-plugin 排除指定的包不参与 Spring Boot 应用程序的打包过程。通过配置 `<excludeGroupIds>` 标签可以实现这一目的。
4582

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



