Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9, 1.9.1, 1.9.2, 1.10
-
Fix Version/s: None
-
Labels:None
-
Environment:maven-1.1 beta 3 from SVN
Description
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
Issue Links
- depends upon
-
MAVEN-1345
Upgrade dom4j
-
- is duplicated by
-
MPXDOC-188
relative references from xdocs/*.xml resolve incorrectly
-
- supercedes
-
MPXDOC-38
Relative XML entities broken in xdoc
-
See also
MPXDOC-188MPXDOC-188