Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Incomplete
-
Affects Version/s: 1.9.2
-
Fix Version/s: None
-
Labels:None
Description
I'm filing this as a separate bug since I couldn't figure out how to re-open MPXDOC-38.
The comment on the original bug report is correct that the problem is really an issue of dom4j.
Further investigation on the dom4j source code revealed that dom4j 1.4 has a lot of issues wrt
SAXReader.read(File). Besides this issue, it ignores the XML encoding declaration.
dom4j 1.5 has a proper fix to these issues, so please consider upgrading to dom4j 1.5 or later.
If for some reason using a later version of dom4j is not an option, then please consider using
other versions of the read method (one that takes URL, by using File.toURL)
File.toURL() is broken for some inputs, but in the context of Maven xdoc plugin, it shouldn't be a problem.
See http://cvs.sourceforge.net/viewcvs.py/dom4j/dom4j/src/java/org/dom4j/io/SAXReader.java?rev=1.58&view=log for the chanlog of SAXReader.
Issue Links
- duplicates
-
MPXDOC-179
Can't use relative links for external entities
-
It turns out dom4j is loaded from $MAVEN_HOME/lib, regardless of what the plugin dependency specifies.
Therefore, I realized that the bug needs to be filed against the maven core.