mirror of https://github.com/apache/maven.git
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:
parent
6da6ca46eb
commit
ace476f8f8
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue