o Changed IT to use the proper lifecycle phases and reflect real world scenarios

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@928056 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-03-26 20:57:34 +00:00
parent 25f2d3529d
commit 80bd86f643
5 changed files with 48 additions and 6 deletions

View File

@ -51,7 +51,7 @@ public class MavenITmng2871PrePackageSubartifactResolutionTest
Verifier verifier = new Verifier( testDir.getAbsolutePath() ); Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.setAutoclean( false ); verifier.setAutoclean( false );
verifier.deleteDirectory( "consumer/target" ); verifier.deleteDirectory( "consumer/target" );
verifier.executeGoal( "validate" ); verifier.executeGoal( "compile" );
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();

View File

@ -56,7 +56,7 @@ public class MavenITmng3043BestEffortReactorResolutionTest
verifier.deleteDirectory( "consumer-c/target" ); verifier.deleteDirectory( "consumer-c/target" );
verifier.deleteArtifacts( "org.apache.maven.its.mng3043" ); verifier.deleteArtifacts( "org.apache.maven.its.mng3043" );
verifier.setLogFileName( "log-test.txt" ); verifier.setLogFileName( "log-test.txt" );
verifier.executeGoal( "validate" ); verifier.executeGoal( "test" );
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();
@ -110,7 +110,7 @@ public class MavenITmng3043BestEffortReactorResolutionTest
verifier.deleteDirectory( "consumer-c/target" ); verifier.deleteDirectory( "consumer-c/target" );
verifier.deleteArtifacts( "org.apache.maven.its.mng3043" ); verifier.deleteArtifacts( "org.apache.maven.its.mng3043" );
verifier.setLogFileName( "log-package.txt" ); verifier.setLogFileName( "log-package.txt" );
verifier.executeGoal( "initialize" ); verifier.executeGoal( "package" );
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();

View File

@ -38,4 +38,20 @@ under the License.
<module>consumer</module> <module>consumer</module>
</modules> </modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>0.1-stub-SNAPSHOT</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>0.1-stub-SNAPSHOT</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project> </project>

View File

@ -47,11 +47,10 @@ under the License.
<artifactId>maven-it-plugin-artifact</artifactId> <artifactId>maven-it-plugin-artifact</artifactId>
<version>2.1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<executions> <executions>
<!-- For the purposes of this test, the "initialize" phase plays the role of the "package" phase -->
<execution> <execution>
<!-- mimic creation of test JAR --> <!-- mimic creation of test JAR -->
<id>package-test-jar</id> <id>package-test-jar</id>
<phase>initialize</phase> <phase>package</phase>
<goals> <goals>
<goal>attach</goal> <goal>attach</goal>
</goals> </goals>
@ -64,7 +63,7 @@ under the License.
<execution> <execution>
<!-- mimic creation of EJB client JAR --> <!-- mimic creation of EJB client JAR -->
<id>package-ejb-client-jar</id> <id>package-ejb-client-jar</id>
<phase>initialize</phase> <phase>package</phase>
<goals> <goals>
<goal>attach</goal> <goal>attach</goal>
</goals> </goals>

View File

@ -40,4 +40,31 @@ under the License.
<module>consumer-b</module> <module>consumer-b</module>
<module>consumer-c</module> <module>consumer-c</module>
</modules> </modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>0.1-stub-SNAPSHOT</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>0.1-stub-SNAPSHOT</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>0.1-stub-SNAPSHOT</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>0.1-stub-SNAPSHOT</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project> </project>