Resources is configured in the build of Maven project to prevent the failure of resource export

Since the convention in Maven is larger than the configuration we may run into the problem that the configuration file we write cannot be exported or valid.

<!--    Configure resources in build to prevent our resource export from failing-->
    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
            </resource>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
            </resource>
        </resources>
    </build>

Read More: