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>