mirror of https://github.com/apache/maven.git
[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:
parent
2cea2cc443
commit
f730a6fbf1
|
@ -73,7 +73,6 @@ public class IntegrationTestSuite
|
||||||
// -------------------------------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------------------------------
|
||||||
// suite.addTestSuite( MavenITmng3890TransitiveDependencyScopeUpdateTest.class );
|
// suite.addTestSuite( MavenITmng3890TransitiveDependencyScopeUpdateTest.class );
|
||||||
// suite.addTestSuite( MavenITmng3038TransitiveDepManVersionTest.class );
|
// suite.addTestSuite( MavenITmng3038TransitiveDepManVersionTest.class );
|
||||||
// suite.addTestSuite( MavenITmng2994SnapshotRangeRepositoryTest.class );
|
|
||||||
// suite.addTestSuite( MavenITmng2771PomExtensionComponentOverrideTest.class );
|
// suite.addTestSuite( MavenITmng2771PomExtensionComponentOverrideTest.class );
|
||||||
// suite.addTestSuite( MavenITmng0612NewestConflictResolverTest.class );
|
// suite.addTestSuite( MavenITmng0612NewestConflictResolverTest.class );
|
||||||
|
|
||||||
|
@ -387,6 +386,7 @@ public class IntegrationTestSuite
|
||||||
suite.addTestSuite( MavenITmng3023ReactorDependencyResolutionTest.class );
|
suite.addTestSuite( MavenITmng3023ReactorDependencyResolutionTest.class );
|
||||||
suite.addTestSuite( MavenITmng3012CoreClassImportTest.class );
|
suite.addTestSuite( MavenITmng3012CoreClassImportTest.class );
|
||||||
suite.addTestSuite( MavenITmng3004ReactorFailureBehaviorMultithreadedTest.class );
|
suite.addTestSuite( MavenITmng3004ReactorFailureBehaviorMultithreadedTest.class );
|
||||||
|
suite.addTestSuite( MavenITmng2994SnapshotRangeRepositoryTest.class );
|
||||||
suite.addTestSuite( MavenITmng2972OverridePluginDependencyTest.class );
|
suite.addTestSuite( MavenITmng2972OverridePluginDependencyTest.class );
|
||||||
suite.addTestSuite( MavenITmng2926PluginPrefixOrderTest.class );
|
suite.addTestSuite( MavenITmng2926PluginPrefixOrderTest.class );
|
||||||
suite.addTestSuite( MavenITmng2921ActiveAttachedArtifactsTest.class );
|
suite.addTestSuite( MavenITmng2921ActiveAttachedArtifactsTest.class );
|
||||||
|
|
|
@ -33,25 +33,27 @@ import java.io.File;
|
||||||
public class MavenITmng2994SnapshotRangeRepositoryTest
|
public class MavenITmng2994SnapshotRangeRepositoryTest
|
||||||
extends AbstractMavenIntegrationTestCase
|
extends AbstractMavenIntegrationTestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
public MavenITmng2994SnapshotRangeRepositoryTest()
|
public MavenITmng2994SnapshotRangeRepositoryTest()
|
||||||
{
|
{
|
||||||
super( ALL_MAVEN_VERSIONS );
|
super( "[3.0-beta-1,)" );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test that snapshot repositories are checked for ranges with snapshot boundaries.
|
* Test that snapshot repositories are checked for ranges with snapshot boundaries.
|
||||||
*/
|
*/
|
||||||
public void testitMNG2994()
|
public void testit()
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2994" );
|
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2994" );
|
||||||
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
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.filterFile( "settings-template.xml", "settings.xml", "UTF-8", verifier.newDefaultFilterProperties() );
|
||||||
verifier.getCliOptions().add( "--settings" );
|
verifier.getCliOptions().add( "--settings" );
|
||||||
verifier.getCliOptions().add( "settings.xml" );
|
verifier.getCliOptions().add( "settings.xml" );
|
||||||
verifier.executeGoal( "compile" );
|
verifier.executeGoal( "validate" );
|
||||||
verifier.verifyErrorFreeLog();
|
verifier.verifyErrorFreeLog();
|
||||||
verifier.resetStreams();
|
verifier.resetStreams();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
<project>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<name>Maven Integration Test :: it0123</name>
|
|
||||||
<groupId>org.apache.maven.its.it0123</groupId>
|
<groupId>org.apache.maven.its.mng2994</groupId>
|
||||||
<artifactId>maven-it-it0123</artifactId>
|
<artifactId>test</artifactId>
|
||||||
<description>Test that snapshot repositories are checked for ranges with snapshot boundaries.</description>
|
|
||||||
<version>1.0</version>
|
<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>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.its.it0123</groupId>
|
<groupId>org.apache.maven.its.mng2994</groupId>
|
||||||
<artifactId>artifact</artifactId>
|
<artifactId>artifact</artifactId>
|
||||||
<version>[1.0-SNAPSHOT]</version>
|
<version>[1.0-SNAPSHOT]</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</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>
|
</project>
|
||||||
|
|
|
@ -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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.apache.maven.its.it0123</groupId>
|
<groupId>org.apache.maven.its.mng2994</groupId>
|
||||||
<artifactId>artifact</artifactId>
|
<artifactId>artifact</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
</project>
|
</project>
|
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?><metadata>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<groupId>org.apache.maven.its.it0123</groupId>
|
<metadata>
|
||||||
|
<groupId>org.apache.maven.its.mng2994</groupId>
|
||||||
<artifactId>artifact</artifactId>
|
<artifactId>artifact</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<versioning>
|
<versioning>
|
||||||
|
@ -8,4 +9,4 @@
|
||||||
</versions>
|
</versions>
|
||||||
<lastUpdated>20070515170129</lastUpdated>
|
<lastUpdated>20070515170129</lastUpdated>
|
||||||
</versioning>
|
</versioning>
|
||||||
</metadata>
|
</metadata>
|
Loading…
Reference in New Issue