You almost got it already! Use the following exclusion syntax:
<exclude-pattern>.*/test-output/.*</exclude-pattern>
This will exclude all files that have /test-output/
somewhere in their absolute path. The pattern is the same in Eclipse and Ant/Maven, as long as the excluded folders are also called test-output
.
Additional explanations and examples can be found in the PMD documentation.