jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1.x XDoc Plugin
  • MPXDOC-188

relative references from xdocs/*.xml resolve incorrectly

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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

Bug - A problem which impairs or prevents the functions of the product. MPXDOC-179 Can't use relative links for external entities

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Kohsuke Kawaguchi added a comment - 15/Jan/06 7:56 PM

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.

Show
Kohsuke Kawaguchi added a comment - 15/Jan/06 7:56 PM 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.
Hide
Permalink
Kohsuke Kawaguchi added a comment - 15/Jan/06 8:01 PM

See MAVEN-1345 for a discussion about the versions of dom4j and their issues.

Show
Kohsuke Kawaguchi added a comment - 15/Jan/06 8:01 PM See MAVEN-1345 for a discussion about the versions of dom4j and their issues.

People

  • Assignee:
    Unassigned
    Reporter:
    Kohsuke Kawaguchi
Vote (0)
Watch (0)

Dates

  • Created:
    15/Jan/06 7:32 PM
    Updated:
    20/Jun/06 11:48 AM
    Resolved:
    15/Jan/06 7:56 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.