Maven: cp **/target/*.jar staging

What is the exact syntax to copy all newly created Maven submodules (*.JAR files) to a staging area?

Parent pom.xml:

maven.yml:

I tried: cp **/target/*.jar staging

Sounds like you need shopt -s globstar

(Which makes this answer popular, since it’s the second time I’m offering it tonight.)