Java 在pom.xml中配置build resources, 来防止我们资源导出失败问题(Maven项目)

在pom.xml中配置build, 来防止我们资源导出失败问题

<!--在build中配置resources, 来防止我们资源导出失败问题-->
<build>
    <resources>
        <resource>
            <directory>src/main/resources</directory>
            <includes>
                <include>**/*.properties</include>
                <include>**/*.xml</include>
            </includes>
            <filtering>true</filtering>
        </resource>
        <resource>
            <directory>src/main/java</directory>
            <includes>
                <include>**/*.properties</include>
                <include>**/*.xml</include>
            </includes>
            <filtering>true</filtering>
        </resource>
    </resources>
</build>
posted @ 2021-01-14 13:21  jiawei3998  阅读(503)  评论(0编辑  收藏  举报