[MJAVADOC-826] - Don't try to modify project source roots by oehme · Pull Request #358 · apache/maven-javadoc-plugin (original) (raw)

The aggregate javadoc mojo was calling addAll directly on the list returned by project.getCompileSourceRoots. This bug was silently ignored by Maven 3, but results in an UnsupportedOperationException on Maven 4.

Do a defensive copy instead.

Following this checklist to help us incorporate your
contribution quickly and easily:

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.