[ http://jira.codehaus.org/browse/MPXDOC-179?page=comments#action_67743 ]
Lukas Theussl commented on MPXDOC-179: -------------------------------------- It is not closed, at least not until we manage to upgrade dom4j. I only verified that in some cases, relative entity resolution works with the latest dom4j, where it fails with the dom4j currently included in m1 (v1.4). That's probably because I didn't use any excluded URL characters in my tests. Did you read Kohsuke's comment at MPXDOC-188? For the File.toURL() bug, see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4273532 . > Can't use relative links for external entities > ---------------------------------------------- > > Key: MPXDOC-179 > URL: http://jira.codehaus.org/browse/MPXDOC-179 > Project: maven-xdoc-plugin > Type: Bug > Versions: 1.10, 1.9.1, 1.9.2, 1.9 > Environment: maven-1.1 beta 3 from SVN > Reporter: Arnaud Heritier > > > Actually we can't use a relative path in xdocs to declare external entities > For exemple in plugins\trunk\xdoc\xdocs\reference\xdocs.xml we reference > escapeXml.xml like this with an absolute path from where maven is generally > called (in the xdoc plugin root directory) > <!DOCTYPE document [ > <!ENTITY escapeXmlExample SYSTEM "file:xdocs/reference/escapeXml.xml"> > ]> > Thus if we use a multiproject the site fails. For example : > plugins\trunk>maven -Dgoal=site > -Dmaven.multiproject.includes=xdoc/project.xml multiproject:goal > gives : > LA CONSTRUCTION A ╚CHOU╚ > Fichier... > D:\Data\maven-1\cache\maven-multiproject-plugin-1.5-SNAPSHOT\plugin.jelly > ╚lement... maven:reactor > Ligne..... 226 > Colonne... -1 > Unable to obtain goal [site] -- > D:\Data\maven-1\cache\maven-xdoc-plugin-1.10-SNAPSHOT\plugin.jelly:490:-1: > <x:parse> xdocs\reference\escapeX > ml.xml (The system cannot find the path specified) Nested exception: > xdocs\reference\escapeXml.xml (The system cannot find the path specifie > d) > If I use a relative path : > <!DOCTYPE document [ > <!ENTITY escapeXmlExample SYSTEM "file:escapeXml.xml"> > ]> > With the same command as previously I receive a similar error : > Fichier... > D:\Data\maven-1\cache\maven-multiproject-plugin-1.5-SNAPSHOT\plugin.jelly > ╚lement... maven:reactor > Ligne..... 226 > Colonne... -1 > Unable to obtain goal [site] -- > D:\Data\maven-1\cache\maven-xdoc-plugin-1.10-SNAPSHOT\plugin.jelly:490:-1: > <x:parse> Error on line 3 of docu > ment : URI relative "file:escapeXml.xml"; ne peut Ûtre rÚsolue sans URI de > base. Nested exception: URI relative "file:escapeXml.xml"; ne pe > ut Ûtre rÚsolue sans URI de base. > It seems to be a problem with dom4j 1.4 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira