You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Robin Green (JIRA)" <ji...@apache.org> on 2010/02/28 11:21:05 UTC
[jira] Created: (IVY-1173) relativePath to parent ignored in
pom.xml file
relativePath to parent ignored in pom.xml file
----------------------------------------------
Key: IVY-1173
URL: https://issues.apache.org/jira/browse/IVY-1173
Project: Ivy
Issue Type: Bug
Components: Maven Compatibility
Affects Versions: 2.1.0
Reporter: Robin Green
Priority: Minor
{{PomModuleDescriptorParser}} ignores the {{relativePath}} element, e.g. in
<parent>
<groupId>org.apache.felix</groupId>
<artifactId>felix-parent</artifactId>
<version>1.2.0</version>
<relativePath>../pom/pom.xml</relativePath>
</parent>
so if the {{parent}} cannot be downloaded from a repository, the parent {{pom.xml}} is ignored and an {{IOException}} is thrown.
Here is the relevant code:
ModuleDescriptor parentDescr = null;
if (domReader.hasParent()) {
//Is there any other parent properties?
ModuleRevisionId parentModRevID = ModuleRevisionId.newInstance(
domReader.getParentGroupId(),
domReader.getParentArtifactId(),
domReader.getParentVersion());
ResolvedModuleRevision parentModule = parseOtherPom(ivySettings,
parentModRevID);
if (parentModule != null) {
parentDescr = parentModule.getDescriptor();
} else {
throw new IOException("Impossible to load parent for " + descriptorURL + "."
+ " Parent=" + parentModRevID);
}
...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.