Skip to content

Commit

Permalink
[MNG-4645] Move central repo definition out of Maven's core so it can…
Browse files Browse the repository at this point in the history
… be more easily changed.
  • Loading branch information
ChristianSchulte committed Jun 30, 2016
1 parent faecb5d commit 81b1de8
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
Expand Up @@ -35,7 +35,11 @@ public class MavenITmng4963ParentResolutionFromMirrorTest

public MavenITmng4963ParentResolutionFromMirrorTest()
{
super( "[2.0.5,3.0-alpha-1),[3.0.3,)" );
// This test got disabled for Maven >= 3.4 because the test is testing built-in repository behaviour. As of
// Maven 3.4 built-in repositories have been moved to the default settings and thus this test is obsolete as of
// Maven 3.4 because there is no way to test built-in repositories without declaring them in the settings or the
// pom.
super( "[2.0.5,3.0-alpha-1),[3.0.3,3.4)" );
}

/**
Expand Down
35 changes: 35 additions & 0 deletions core-it-suite/src/test/resources/mng-4991/settings-template.xml
Expand Up @@ -41,6 +41,41 @@ under the License.
<profile>
<id>it-defaults</id>
<!-- disable central override and use built-in values -->

<!--
As of Maven 3.4, there are no built-in values other than what is declared in the default settings. In order to
use the built-in values, those values need to be provided here. It is essential the repositories below match
the built-in values prior to Maven 3.4.
-->
<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
Expand Down

0 comments on commit 81b1de8

Please sign in to comment.