IDEA不编译src的java目录下的xml文件
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<--<resource>
<directory>src/main/resources</directory>
</resource>-->
</resources>
</build>
IDEA不编译src的java目录下的xml文件
配置maven的pom文件配置,在pom文件中找到节点,添加下列代码:
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<--<resource>
<directory>src/main/resources</directory>
</resource>-->
</resources>
</build>
原文[https://segmentfault.com/a/1190000014014871]