Maven Resources Plugin
The mapping matches URLs using the following rules:
*
matches zero or more characters (匹配0个或N个字符)
**
matches zero or more directories in a path (匹配0个或N个目录)
Examples
com/*.jsp
— matches all .jsp
files in the com directory
com/**/test.jsp
— matches all test.jsp
files underneath the com path
楼主可以将表达式写成如下尝试:
<excludes> <exclude>**/generatorConfig.xml</exclude> </excludes>