maven-dependency-plugin打包的如何排除application.yml文件
答:
对某个包的application.xml过滤
<artifactItem>
<groupId>com.cloud</groupId>
<artifactId>common</artifactId>
<version>0.0.1-SNAPSHOT</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>target/classes</outputDirectory>
<includes>**/*</includes>
<excludes>**/*application.yml</excludes>
</artifactItem>
全局排除yml文件
<configuration>
<artifactItems>
<!--框架包 打包的时候,也把依赖包的class打到包中 使用common-bx-运行时要把common-bx-auth的artifactItem注释-->
<artifactItem>
<groupId>com.bx.cloud</groupId>
<artifactId>common</artifactId>
<version>0.0.1-SNAPSHOT</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>target/classes</outputDirectory>
<includes>**/*</includes>
<excludes>**/*application.yml</excludes>
</artifactItem>
</artifactItems>
<excludes>**/*.yml</excludes>
</configuration>