NEXUS-6182: Mojo hangs in non-parallel build.

But might hang in parallel builds too.

Issue
https://issues.sonatype.org/browse/NEXUS-6182

CI
TBD