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

relativePath to parent ignored in pom.xml file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.1.0
    • None
    • Maven Compatibility
    • 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); }

      ...

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: