Apache Maven Resources Plugin exclude a directory
<exclude>**/p2/**</exclude>
is the correct answer thanks to @khmarbaise.
Try this
<resource>
<directory>p2</directory>
<excludes>
<exclude>p2/**</exclude>
</excludes>
</resource>
<exclude>**/p2/**</exclude>
is the correct answer thanks to @khmarbaise.
Try this
<resource>
<directory>p2</directory>
<excludes>
<exclude>p2/**</exclude>
</excludes>
</resource>