o Stabilized ITs by using specific version instead of LATEST

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@702575 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2008-10-07 18:29:51 +00:00
parent 6da6ca46eb
commit ace476f8f8
26 changed files with 33 additions and 18 deletions

View File

@ -38,7 +38,7 @@ public class MavenIT0014Test
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0014" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-file::file" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-file:2.1-SNAPSHOT:file" );
verifier.assertFilePresent( "target/plugin-configuration.txt" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();

View File

@ -30,8 +30,8 @@ public class MavenIT0018Test
/**
* Ensure that managed dependencies for dependency POMs are calculated
* correctly when resolved. Removes commons-logging-1.0.3 and checks it is
* redownloaded.
* correctly when resolved. Removes managed-dep-1.0.3 and checks it is
* redownloaded upon resolution of direct-dep.
*/
public void testit0018()
throws Exception
@ -39,7 +39,7 @@ public class MavenIT0018Test
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0018" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.deleteArtifact( "org.apache.maven.its.it0018", "managed-dep", "1.0.3", "jar" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-dependency-resolution::compile" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-dependency-resolution:2.1-SNAPSHOT:compile" );
verifier.assertArtifactPresent( "org.apache.maven.its.it0018", "managed-dep", "1.0.3", "jar" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();

View File

@ -38,7 +38,7 @@ public class MavenIT0028Test
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0028" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-file::file" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-file:2.1-SNAPSHOT:file" );
verifier.assertFilePresent( "target/file.txt" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();

View File

@ -41,7 +41,7 @@ public class MavenIT0043Test
File child1 = new File( testDir, "setup" );
Verifier verifier = new Verifier( child1.getAbsolutePath() );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-expression::eval" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-expression:2.1-SNAPSHOT:eval" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
@ -52,7 +52,7 @@ public class MavenIT0043Test
Properties systemProperties = new Properties();
systemProperties.put( "expression.expressions", "project/repositories,project/pluginRepositories" );
verifier.setSystemProperties( systemProperties );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-expression::eval" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-expression:2.1-SNAPSHOT:eval" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();

View File

@ -43,7 +43,7 @@ public class MavenIT0047Test
Properties systemProperties = new Properties();
systemProperties.put( "depres.compileClassPath", new File( testDir, "target/compile.txt" ).getAbsolutePath() );
verifier.setSystemProperties( systemProperties );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-dependency-resolution::compile" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-dependency-resolution:2.1-SNAPSHOT:compile" );
verifier.assertFilePresent( "target/compile.txt" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();

View File

@ -38,7 +38,7 @@ public class MavenIT0048Test
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0048" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-file::file" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-file:2.1-SNAPSHOT:file" );
verifier.assertFilePresent( "target/file.txt" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();

View File

@ -39,7 +39,7 @@ public class MavenIT0063Test
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.getSystemProperties().setProperty( "jre.home", new File( testDir, "jdk/jre" ).getPath() );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-dependency-resolution::compile" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-dependency-resolution:2.1-SNAPSHOT:compile" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();

View File

@ -41,7 +41,7 @@ public class MavenIT0069Test
{
// phase 1: run build in online mode to fill local repo
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-dependency-resolution::compile" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-dependency-resolution:2.1-SNAPSHOT:compile" );
verifier.assertFilePresent( "target/compile.txt" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
@ -55,7 +55,7 @@ public class MavenIT0069Test
List cliOptions = new ArrayList();
cliOptions.add( "-o" );
verifier.setCliOptions( cliOptions );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-dependency-resolution::compile" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-dependency-resolution:2.1-SNAPSHOT:compile" );
verifier.assertFilePresent( "target/compile.txt" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
@ -71,7 +71,7 @@ public class MavenIT0069Test
verifier.setCliOptions( cliOptions );
try
{
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-dependency-resolution::compile" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-dependency-resolution:2.1-SNAPSHOT:compile" );
fail( "Build did not fail!" );
}
catch( VerificationException e )

View File

@ -42,7 +42,7 @@ public class MavenIT0075Test
Properties systemProperties = new Properties();
systemProperties.put( "activate", "anything" );
verifier.setSystemProperties( systemProperties );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-expression::eval" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-expression:2.1-SNAPSHOT:eval" );
verifier.assertFilePresent( "sub1/target/expression.properties" );
verifier.assertFilePresent( "sub2/target/expression.properties" );
verifier.verifyErrorFreeLog();

View File

@ -46,7 +46,7 @@ public class MavenIT0095Test
Properties systemProperties = new Properties();
systemProperties.put( "expression.expressions", "project/scm" );
verifier.setSystemProperties( systemProperties );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-expression::eval" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-expression:2.1-SNAPSHOT:eval" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();

View File

@ -43,7 +43,7 @@ public class MavenIT0102Test
Properties systemProperties = new Properties();
systemProperties.put( "expression.expressions", "project/properties" );
verifier.setSystemProperties( systemProperties );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-expression::eval" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-expression:2.1-SNAPSHOT:eval" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();

View File

@ -50,7 +50,7 @@ public class MavenITmng0469Test
Verifier verifier = new Verifier( new File( testDir, "test0" ).getAbsolutePath() );
verifier.deleteDirectory( "target" );
verifier.setAutoclean( false );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-file::file" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-file:2.1-SNAPSHOT:file" );
verifier.assertFilePresent( "target/reporting.txt" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
@ -58,7 +58,7 @@ public class MavenITmng0469Test
verifier = new Verifier( new File( testDir, "test1" ).getAbsolutePath() );
verifier.deleteDirectory( "target" );
verifier.setAutoclean( false );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-file::file" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-file:2.1-SNAPSHOT:file" );
verifier.assertFilePresent( "target/build.txt" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();

View File

@ -37,6 +37,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-file</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<pathname>target/plugin-configuration.txt</pathname>
</configuration>

View File

@ -38,6 +38,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-file</artifactId>
<version>2.1-SNAPSHOT</version>
<executions>
<execution>
<id>test</id>

View File

@ -38,6 +38,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-file</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<unused>something</unused>
</configuration>

View File

@ -40,6 +40,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-file</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<pathname>target/plugin-management-configuration.txt</pathname>
</configuration>

View File

@ -38,6 +38,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-file</artifactId>
<version>2.1-SNAPSHOT</version>
<executions>
<execution>
<id>first-exec</id>

View File

@ -42,6 +42,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-file</artifactId>
<version>2.1-SNAPSHOT</version>
<inherited>true</inherited>
<configuration>
<pathnames>

View File

@ -37,6 +37,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-file</artifactId>
<version>2.1-SNAPSHOT</version>
<inherited>true</inherited>
<configuration>
<pathnames combine.children="append">

View File

@ -45,6 +45,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-dependency-resolution</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<compileClassPath>target/compile.txt</compileClassPath>
</configuration>

View File

@ -49,6 +49,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-dependency-resolution</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<compileClassPath>target/compile.txt</compileClassPath>
</configuration>

View File

@ -40,6 +40,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-file</artifactId>
<version>2.1-SNAPSHOT</version>
<executions>
<execution>
<id>exec1</id>

View File

@ -45,6 +45,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-artifact</artifactId>
<version>2.1-SNAPSHOT</version>
<executions>
<execution>
<phase>initialize</phase>

View File

@ -8,6 +8,7 @@
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-uses-properties</artifactId>
<version>2.1-SNAPSHOT</version>
<executions>
<execution>
<phase>validate</phase>

View File

@ -37,6 +37,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-file</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<!-- should override default value when plugin is invoked during build lifecycle -->
<pathname>target/reporting.txt</pathname>

View File

@ -37,6 +37,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-file</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<!-- should be dominant when plugin is invoked during build lifecycle -->
<pathname>target/build.txt</pathname>
@ -50,6 +51,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-file</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<!-- should not override value from <build> configuration when plugin is invoked during build lifecycle -->
<pathname>target/reporting.txt</pathname>