Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7201

Child pom fails to resolve the parent pom from Nexus repo

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 3.8.1
    • Fix Version/s: None
    • Component/s: POM
    • Labels:
      None
    • Environment:
      Jenkins Maven Pod using <maven:3.8.1-jdk-11> image

      Description

      A maven project which have a parent SNAPSHOT cannot be resolved when :

      a) the Parent SNAPSHOT pom is not present in the local maven repository
      b) the Parent SNAPSHOT pom is deployed in a Nexus repository and <repository> entry in pom.xml of parent project.
      c) settings.xml has a mirror redirecting all to Nexus
      d) there is no <repository> entry in the settings.xml file and in pom.xml of child project as Nexus is used for all resolutions.

      • If we added <repository> entry in pom.xml of child project then it retrieves from Nexus.

       

      Please check below error:
      [FATAL] Non-resolvable parent POM for <child snapshot>: Could not find artifact <parent snapshot> and 'parent.relativePath' points at wrong local POM @ line 5, column 13

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Parab Neha Parab
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: