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

[regression] Parent POM not downloaded when settings define global mirror and one snapshot repo but no other release repository




      Given the following two projects:

      parent, released as organization POM
      child, uses parent as its parent

      parent pom is NOT in the local repository (i.e. new developer machine or build node of the CI)

      settings.xml defines:

      a) a global mirror for all repositories (http://local-nexus.srv/content/groups/public)

            <name>Coporate Nexus</name>

      b) a profile "repos" including a snapshot repository and an active-profiles entry activating this profile

                <name>Projektserver Snapshots</name>

      This is a fairly standard setup for copporate development.

      now, when trying to compile the project, the following error is thrown:

      [INFO] Scanning for projects...
      [ERROR] The build could not read 1 project -> [Help 1]
      [ERROR]   The project de.eucodos.bugs.maven:child:0.1-SNAPSHOT (X:\ACM\test\child\pom.xml) has 1 error
      [ERROR]     Non-resolvable parent POM: Could not find artifact de.eucodos.bugs.maven:parent:pom:0.1 and 'parent.relative
      Path' points at wrong local POM @ line 3, column 11 -> [Help 2]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
      [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

      Without maven trying to download the parent from the corp-repo.

      Sidenote: with Maven 2.x, this works without problems.

      If an additional release-repository is included in profile "repos", everything works as expected:



        1. parent-projects.zip
          1.0 kB
          Stephan Pauxberger

          Issue Links



              • Assignee:
                bentmann Benjamin Bentmann
                paux Stephan Pauxberger
              • Votes:
                2 Vote for this issue
                3 Start watching this issue


                • Created: