maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Nguyen Xuan (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MNG-5105) disable/enable repositories in settings.xml does not work
Date Wed, 25 May 2011 07:36:22 GMT
disable/enable repositories in settings.xml does not work
---------------------------------------------------------

                 Key: MNG-5105
                 URL: http://jira.codehaus.org/browse/MNG-5105
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: Artifacts and Repositories
    Affects Versions: 3.0.3
            Reporter: Jeremy Nguyen Xuan


With the following configuration, Maven will resolve SNAPSHOT dependencies from the first
repository:
<repositories>
	<repository>
		<id>public</id>
		<url>http://artifacts/content/groups/public</url>
		<releases>
			<enabled>true</enabled>
		</releases>
		<snapshots>
			<enabled>false</enabled>
		</snapshots>
	</repository>
	<repository>
		<id>allowed-snapshots</id>
		<url>http://artifacts/content/groups/allowed-snapshots/</url>
		<snapshots>
			<enabled>true</enabled>
		</snapshots>
	</repository>
</repositories>

The expected behavior would be Maven to resolve only release versions from the first repository,
and snapshots versions from the second one.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message