Maven resource file packaging filtering

When maven is packaged, it is sometimes necessary to enter some configuration files into the jar, such as: custom tld files, the tld files under META-INF will not be entered into the jar during mvn install, if you need to enter the jar, you can Add a filter to the resource, as follows:

            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.tld</include>
                </includes>
                <filtering>false</filtering>
            </resource>

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326757878&siteId=291194637