Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8387

Maven mirrors not used when project uses Maven 2.2

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None
    • Ubuntu Lucid

      After upgrading from 1.391 to 1.392, Maven 2.2.1 builds fail when requiring that new artifacts be downloaded from a local Maven repository proxy (Nexus). Even though Maven is configured to use the proxy as a mirror for all repositories, artifacts are attempted to be downloaded from the actual repositories. Downgrading to 1.391 fixes the issue.

      Settings.xml
      <mirrors/>
          <mirror>
              <id>nexus</id>
              <mirrorOf>*</mirrorOf>
              <url>http://my.internal.nexus/content/groups/public</url>
          </mirror>
      <mirrors>
      <profiles>
          <profile>
              <repositories>
                  <repository>
                      <id>other-repo</id>
                      <url>http://www.external.url.com/m2</url>
                      <releases>
                          <enabled>true</enabled>
                      </releases>
                      <snapshots>
                          <enabled>true</enabled>
                      </snapshots>
                  </repository>
              </repositories>
              <pluginRepositories>
                  <pluginRepository>
                      <id>other-repo</id>
                      <url>http://www.external.url.com/m2</url>
                      <releases>
                          <enabled>true</enabled>
                      </releases>
                      <snapshots>
                          <enabled>true</enabled>
                      </snapshots>
                  </pluginRepository>
              </pluginRepositories>
          </profile>
      </profiles>
      

      Logs report a 407 response when trying to retrieve the artifact from http://www.external.url.com/m2/org/new/artifact/1.1.0-SNAPSHOT/artifact-1.1.0-SNAPSHOT.jar.

          [JENKINS-8387] Maven mirrors not used when project uses Maven 2.2

          dan_yell created issue -
          Olivier Lamy made changes -
          Assignee New: Olivier Lamy [ olamy ]
          Olivier Lamy made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Olivier Lamy made changes -
          Link New: This issue is duplicated by JENKINS-8416 [ JENKINS-8416 ]
          tonylampada2 made changes -
          Link New: This issue is related to JENKINS-8424 [ JENKINS-8424 ]
          Jenkins IRC Bot made changes -
          Component/s New: maven-plugin [ 16033 ]
          Component/s Original: maven2 [ 15487 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 138497 ] New: JNJira + In-Review [ 204788 ]

            olamy Olivier Lamy
            dan_yell dan_yell
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: