[MNG-2994] Snapshot repositories are not checked when using ranges

o Enabled IT

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@932126 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-04-08 21:28:03 +00:00
parent 2cea2cc443
commit f730a6fbf1
6 changed files with 68 additions and 15 deletions

View File

@ -73,7 +73,6 @@ public class IntegrationTestSuite
// -------------------------------------------------------------------------------------------------------------
// suite.addTestSuite( MavenITmng3890TransitiveDependencyScopeUpdateTest.class );
// suite.addTestSuite( MavenITmng3038TransitiveDepManVersionTest.class );
// suite.addTestSuite( MavenITmng2994SnapshotRangeRepositoryTest.class );
// suite.addTestSuite( MavenITmng2771PomExtensionComponentOverrideTest.class );
// suite.addTestSuite( MavenITmng0612NewestConflictResolverTest.class );
@ -387,6 +386,7 @@ public class IntegrationTestSuite
suite.addTestSuite( MavenITmng3023ReactorDependencyResolutionTest.class );
suite.addTestSuite( MavenITmng3012CoreClassImportTest.class );
suite.addTestSuite( MavenITmng3004ReactorFailureBehaviorMultithreadedTest.class );
suite.addTestSuite( MavenITmng2994SnapshotRangeRepositoryTest.class );
suite.addTestSuite( MavenITmng2972OverridePluginDependencyTest.class );
suite.addTestSuite( MavenITmng2926PluginPrefixOrderTest.class );
suite.addTestSuite( MavenITmng2921ActiveAttachedArtifactsTest.class );

View File

@ -33,25 +33,27 @@ import java.io.File;
public class MavenITmng2994SnapshotRangeRepositoryTest
extends AbstractMavenIntegrationTestCase
{
public MavenITmng2994SnapshotRangeRepositoryTest()
{
super( ALL_MAVEN_VERSIONS );
super( "[3.0-beta-1,)" );
}
/**
* Test that snapshot repositories are checked for ranges with snapshot boundaries.
*/
public void testitMNG2994()
public void testit()
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2994" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.deleteArtifacts( "org.apache.maven.its.it0123" );
verifier.deleteArtifacts( "org.apache.maven.its.mng2994" );
verifier.filterFile( "settings-template.xml", "settings.xml", "UTF-8", verifier.newDefaultFilterProperties() );
verifier.getCliOptions().add( "--settings" );
verifier.getCliOptions().add( "settings.xml" );
verifier.executeGoal( "compile" );
verifier.executeGoal( "validate" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
}
}

View File

@ -1,15 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project>
<modelVersion>4.0.0</modelVersion>
<name>Maven Integration Test :: it0123</name>
<groupId>org.apache.maven.its.it0123</groupId>
<artifactId>maven-it-it0123</artifactId>
<description>Test that snapshot repositories are checked for ranges with snapshot boundaries.</description>
<groupId>org.apache.maven.its.mng2994</groupId>
<artifactId>test</artifactId>
<version>1.0</version>
<name>Maven Integration Test :: MNG-2994</name>
<description>
Test that snapshot repositories are checked for ranges with snapshot boundaries.
</description>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.it0123</groupId>
<groupId>org.apache.maven.its.mng2994</groupId>
<artifactId>artifact</artifactId>
<version>[1.0-SNAPSHOT]</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-dependency-resolution</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<compileClassPath>target/classpath.txt</compileClassPath>
<significantPathLevels>1</significantPathLevels>
</configuration>
<executions>
<execution>
<id>test</id>
<phase>validate</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?><project>
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.it0123</groupId>
<groupId>org.apache.maven.its.mng2994</groupId>
<artifactId>artifact</artifactId>
<version>1.0-SNAPSHOT</version>
</project>

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.it0123</groupId>
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.apache.maven.its.mng2994</groupId>
<artifactId>artifact</artifactId>
<version>1.0-SNAPSHOT</version>
<versioning>
@ -8,4 +9,4 @@
</versions>
<lastUpdated>20070515170129</lastUpdated>
</versioning>
</metadata>
</metadata>