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

relativePath to parent ignored in pom.xml file

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            greenrd Robin Green

            Dates

              Created:
              Updated:

              Slack

                Issue deployment