I typed an answer recently, and I used a code block where I had to use a double asterisk:
<exclude> <pattern>src/main/**</pattern> </exclude>
The text following the double asterisk was grayed out. I searched meta but couldn't find advice how to escape asterisks.
The original answer may be seen here: Maven directory structure: good place for SQL (DDL, ...) scripts