最近在spark streaming本地调试的时候,引入了一些资源文件,打包的时候需要给排除掉。所以就考虑使用maven的方式

详细参考官方文档:https://maven.apache.org/plugins/maven-jar-plugin/examples/include-exclude.html

排除某个资源文件

org.apache.maven.plugins

maven-jar-plugin

3.0.2

core-site.xml

hdfs-site.xml

排除某个目录

...

...

org.apache.maven.plugins

maven-jar-plugin

3.0.2

**/service/*

...

...

我的博客即将搬运同步至腾讯云+社区,邀请大家一同入驻:https://cloud.tencent.com/developer/support-plan

查看原文