You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christian Schulte (JIRA)" <ji...@apache.org> on 2016/01/27 02:19:39 UTC
[jira] [Commented] (MNG-5846) Maven 3.3.3 ignores repository
definition for "central"
[ https://issues.apache.org/jira/browse/MNG-5846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15118409#comment-15118409 ]
Christian Schulte commented on MNG-5846:
----------------------------------------
Out of curiosity - which version of Maven has been used producing
{code}
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)
{code}
? That is not the default central repository URL since Maven 3.0.4.
I am not sure this is a regression. Do you know exactly what version was the first no longer behaving the way described?
> Maven 3.3.3 ignores repository definition for "central"
> -------------------------------------------------------
>
> Key: MNG-5846
> URL: https://issues.apache.org/jira/browse/MNG-5846
> Project: Maven
> Issue Type: Bug
> Components: Artifacts and Repositories
> Affects Versions: 3.3.1
> Environment: n/a
> Reporter: Torsten Liermann
>
> 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.
> {quote}
> <?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>
> {quote}
> Log file snippet
> {quote}
> 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)
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)