Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1173

relativePath to parent ignored in pom.xml file

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: Maven Compatibility
    • Labels:
      None

      Description

      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); }

      ...

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            greenrd Robin Green
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development