Maven中xml配置文件导出到target失败问题解决方案
在pom.xml中加入下面代码
<!--在build中配置resources,来防止我们资源导出失败的问题-->
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>**/*.properties</exclude>
<exclude>**/*.xml</exclude>
</excludes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
标签:xml,target,配置文件,解决方案,导出,Maven
From: https://www.cnblogs.com/gsq-doglife/p/16610363.html