<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
pom导入build
最新推荐文章于 2024-04-10 09:30:12 发布
本文详细介绍了Maven构建过程中对资源文件的处理,包括从`src/main/java`和`src/main/resources`目录下筛选`.xml`和`.properties`文件,以及资源配置中的过滤设置。
摘要由CSDN通过智能技术生成