Created attachment 557637 [details]
upstream vs installed
Description of problem:
When developing a Maven extension that uses DOM you run into trouble if you do not load the default installed extension libraries.
/usr/share/maven/lib/ext contains xml-commons-apis.jar to hide the fact that /usr/share/maven/lib/xerces-j2.jar is not the same as xercesMinimal-184.108.40.206.jar which comes with the upstream distribution.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Write an extension that does not incorporate the default lib/ext
2. Use the extension
Observe the java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
A working extension.
In the attachment there is a diff between a run with upstream and a run with installed maven.
I believe that this bug is fixed in maven-3.0.4-32,
which is available in Fedora Rawhide. I am closing the bug now,
thank you for reporting it. A summary of changes is included below.
* Mon Feb 11 2013 Mikolaj Izdebski <email@example.com> - 3.0.4-32
- Remove xerces-j2 from plexus.core realm
- Resolves: rhbz#784816