You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Lukas Theussl (JIRA)" <ji...@codehaus.org> on 2006/05/03 01:57:42 UTC
[jira] Commented: (MPXDOC-179) Can't use relative links for
external entities
[ http://jira.codehaus.org/browse/MPXDOC-179?page=comments#action_64602 ]
Lukas Theussl commented on MPXDOC-179:
--------------------------------------
Confirming that this works with my upgraded dom4j build, see the recent comments at MAVEN-1345. So the problem is not in the xdoc plugin but in the core.
> 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