Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-442

Maven keeps connecting to http://repo1.maven.org even with mirrors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      I created a mirror in setting.xml , for every connection , to connect to my local repo in Artifactory . It works! But when the generate action starts Maven connects to http://repo1.maven.org:

      <!-- ***** BEFORE THE GENERATE, MAVEN USES MIRROR ********* -->
      
      [DEBUG] Using mirror ibiblio.org (http://localhost:8081/artifactory/remote-widesys-libs) for central (http://localhost:8081/artifactory/remote-widesys-libs).
      [DEBUG] Using mirror remote-widesys-libs (http://localhost:8081/artifactory/remote-widesys-libs) for snapshots (http://localhost:8081/artifactory/remote-widesys-libs).
      [DEBUG] Extension realms for project org.apache.maven:standalone-pom:pom:1: (none)
      [DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null]
      [DEBUG] Resolving plugin prefix archetype from [org.apache.maven.plugins, org.codehaus.mojo]
      [DEBUG] Using mirror remote-widesys-libs (http://localhost:8081/artifactory/remote-widesys-libs) for apache.snapshots (http://repository.apache.org/snapshots).
      [DEBUG] Using mirror remote-widesys-libs (http://localhost:8081/artifactory/remote-widesys-libs) for apache.snapshots (http://repository.apache.org/snapshots).
      [DEBUG] Using mirror remote-widesys-libs (http://localhost:8081/artifactory/remote-widesys-libs) for apache.snapshots (http://repository.apache.org/snapshots).
      [DEBUG] Using mirror remote-widesys-libs (http://localhost:8081/artifactory/remote-widesys-libs) for apache.snapshots (http://repository.apache.org/snapshots).
      [DEBUG] Using mirror remote-widesys-libs (http://localhost:8081/artifactory/remote-widesys-libs) for apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository).
      [DEBUG] Using mirror remote-widesys-libs (http://localhost:8081/artifactory/remote-widesys-libs) for codehaus.org (http://snapshots.repository.codehaus.org).
      [DEBUG] Using mirror remote-widesys-libs (http://localhost:8081/artifactory/remote-widesys-libs) for apache.snapshots (http://repository.apache.org/snapshots).
      [DEBUG] Using mirror remote-widesys-libs (http://localhost:8081/artifactory/remote-widesys-libs) for apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository).
      [DEBUG] Using mirror remote-widesys-libs (http://localhost:8081/artifactory/remote-widesys-libs) for apache.snapshots (http://repository.apache.org/snapshots).
      
      <!-- ***** AFTER THE GENERATE, MAVEN DOESN'T USE MIRROR ********* -->
      
      [INFO] Generating project in Batch mode
      [DEBUG] Searching for remote catalog: http://repo1.maven.org/maven2/archetype-catalog.xml
      [DEBUG] Searching for remote catalog: http://repo1.maven.org/maven2
      

      And btw, I'm using mirrors and I've overwrited the central repo with my local repo.

      I've searched the whole Internet for ways to disable connections to http://repo1.maven.org but this keeps happening...

      You can consult my settings.xml in the attachments

      Attachments

        1. settings.xml
          2 kB
          Rafael Pato

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              metalweirdo Rafael Pato
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: