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

Maven 3.3.3 ignores repository definition for "central"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 3.3.1
    • None
    • None
    • n/a

    Description

      Hi,

      The sample pom.xml works fine with maven 3.0.5 but shows a big problem while using maven 3.3.3.
      It's starts correctly and downloads a set of dependencies from the specified and overriden central repositories. The, suddenly, during a running build it starts downloading dependencies from the default "central" repository (which is actually overridden). This behaviour is problematic for us.

      In these log-statements you can see that initial downloads are done from the overridden definition and that later the default central repository is used.

      <?xml version="1.0" encoding="UTF-8"?>
      <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <modelVersion>4.0.0</modelVersion>
      <groupId>xxx</groupId>
      <artifactId>yyy</artifactId>
      <version>5.0-SNAPSHOT</version>
      <dependencies>
      <dependency>
      <groupId>org.glassfish.main.appclient.client</groupId>
      <artifactId>gf-client</artifactId>
      <version>3.1.2.2</version>
      </dependency>
      </dependencies>
      <repositories>
      <repository>
      <id>central</id>
      <url>http://www.liermann.ws/maven/</url>
      <releases>
      <enabled>true</enabled>
      </releases>
      <snapshots>
      <enabled>true</enabled>
      <updatePolicy>always</updatePolicy>
      </snapshots>
      </repository>
      </repositories>

      <pluginRepositories>
      <pluginRepository>
      <id>central</id>
      <url>http://www.liermann.ws/maven/</url>
      <releases>
      <enabled>true</enabled>
      </releases>
      <snapshots>
      <enabled>true</enabled>
      <updatePolicy>always</updatePolicy>
      </snapshots>
      </pluginRepository>
      </pluginRepositories>
      </project>

      Log file snippet

      Downloading: http://www.liermann.ws/maven/org/glassfish/metro/metro-project/2.2.0-1/metro-project-2.2.0-1.pom
      Downloaded: http://www.liermann.ws/maven/org/glassfish/metro/metro-project/2.2.0-1/metro-project-2.2.0-1.pom (31 KB at 532.0 KB/sec)
      Downloading: http://repo1.maven.org/maven2/com/sun/xml/ws/jaxws-ri/2.2.6-2/jaxws-ri-2.2.6-2.pom
      Downloaded: http://repo1.maven.org/maven2/com/sun/xml/ws/jaxws-ri/2.2.6-2/jaxws-ri-2.2.6-2.pom (6 KB at 101.3 KB/sec)

      Attachments

        Activity

          People

            Unassigned Unassigned
            lier99 Torsten Liermann
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: