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" ); File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0014" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() ); 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.assertFilePresent( "target/plugin-configuration.txt" );
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();

View File

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

View File

@ -38,7 +38,7 @@ public class MavenIT0028Test
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0028" ); File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0028" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() ); 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.assertFilePresent( "target/file.txt" );
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();

View File

@ -41,7 +41,7 @@ public class MavenIT0043Test
File child1 = new File( testDir, "setup" ); File child1 = new File( testDir, "setup" );
Verifier verifier = new Verifier( child1.getAbsolutePath() ); 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.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();
@ -52,7 +52,7 @@ public class MavenIT0043Test
Properties systemProperties = new Properties(); Properties systemProperties = new Properties();
systemProperties.put( "expression.expressions", "project/repositories,project/pluginRepositories" ); systemProperties.put( "expression.expressions", "project/repositories,project/pluginRepositories" );
verifier.setSystemProperties( systemProperties ); 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.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();

View File

@ -43,7 +43,7 @@ public class MavenIT0047Test
Properties systemProperties = new Properties(); Properties systemProperties = new Properties();
systemProperties.put( "depres.compileClassPath", new File( testDir, "target/compile.txt" ).getAbsolutePath() ); systemProperties.put( "depres.compileClassPath", new File( testDir, "target/compile.txt" ).getAbsolutePath() );
verifier.setSystemProperties( systemProperties ); 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.assertFilePresent( "target/compile.txt" );
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();

View File

@ -38,7 +38,7 @@ public class MavenIT0048Test
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0048" ); File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0048" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() ); 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.assertFilePresent( "target/file.txt" );
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();

View File

@ -39,7 +39,7 @@ public class MavenIT0063Test
Verifier verifier = new Verifier( testDir.getAbsolutePath() ); Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.getSystemProperties().setProperty( "jre.home", new File( testDir, "jdk/jre" ).getPath() ); 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.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();

View File

@ -41,7 +41,7 @@ public class MavenIT0069Test
{ {
// phase 1: run build in online mode to fill local repo // phase 1: run build in online mode to fill local repo
Verifier verifier = new Verifier( testDir.getAbsolutePath() ); 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.assertFilePresent( "target/compile.txt" );
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();
@ -55,7 +55,7 @@ public class MavenIT0069Test
List cliOptions = new ArrayList(); List cliOptions = new ArrayList();
cliOptions.add( "-o" ); cliOptions.add( "-o" );
verifier.setCliOptions( cliOptions ); 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.assertFilePresent( "target/compile.txt" );
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();
@ -71,7 +71,7 @@ public class MavenIT0069Test
verifier.setCliOptions( cliOptions ); verifier.setCliOptions( cliOptions );
try 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!" ); fail( "Build did not fail!" );
} }
catch( VerificationException e ) catch( VerificationException e )

View File

@ -42,7 +42,7 @@ public class MavenIT0075Test
Properties systemProperties = new Properties(); Properties systemProperties = new Properties();
systemProperties.put( "activate", "anything" ); systemProperties.put( "activate", "anything" );
verifier.setSystemProperties( systemProperties ); 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( "sub1/target/expression.properties" );
verifier.assertFilePresent( "sub2/target/expression.properties" ); verifier.assertFilePresent( "sub2/target/expression.properties" );
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();

View File

@ -46,7 +46,7 @@ public class MavenIT0095Test
Properties systemProperties = new Properties(); Properties systemProperties = new Properties();
systemProperties.put( "expression.expressions", "project/scm" ); systemProperties.put( "expression.expressions", "project/scm" );
verifier.setSystemProperties( systemProperties ); 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.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();

View File

@ -43,7 +43,7 @@ public class MavenIT0102Test
Properties systemProperties = new Properties(); Properties systemProperties = new Properties();
systemProperties.put( "expression.expressions", "project/properties" ); systemProperties.put( "expression.expressions", "project/properties" );
verifier.setSystemProperties( systemProperties ); 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.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();

View File

@ -50,7 +50,7 @@ public class MavenITmng0469Test
Verifier verifier = new Verifier( new File( testDir, "test0" ).getAbsolutePath() ); Verifier verifier = new Verifier( new File( testDir, "test0" ).getAbsolutePath() );
verifier.deleteDirectory( "target" ); verifier.deleteDirectory( "target" );
verifier.setAutoclean( false ); 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.assertFilePresent( "target/reporting.txt" );
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();
@ -58,7 +58,7 @@ public class MavenITmng0469Test
verifier = new Verifier( new File( testDir, "test1" ).getAbsolutePath() ); verifier = new Verifier( new File( testDir, "test1" ).getAbsolutePath() );
verifier.deleteDirectory( "target" ); verifier.deleteDirectory( "target" );
verifier.setAutoclean( false ); 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.assertFilePresent( "target/build.txt" );
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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