Details
Description
I had broken out parts of my maven.xml file to entities. My structure basically looks like this:
superproj/
| – buildconf |
| `-- external-ent.xml |
| – maven.xml |
| – project.properties |
| – project.xml `-- subproj |
| – project.properties `-- project.xml |
In maven.xml, there's a section that looks like:
<!DOCTYPE Project [
<!ENTITY build SYSTEM "buildconf/maven-test.xml">
]>
The problem is, when I go into subproj (whose project.xml inherits from superproj's project.xml) and run a maven command, maven tries to resolve the entity to subproj/buildconf/maven-test.xml.
That's why I'd like it to be relative to maven.xml.
I will attach a patch.
This patch passes a long a reference system id where needed so that relative entities can be resolved relative to the xml file being parsed.