mirror of https://github.com/apache/maven.git
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:
parent
25f2d3529d
commit
80bd86f643
|
@ -51,7 +51,7 @@ public class MavenITmng2871PrePackageSubartifactResolutionTest
|
|||
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
||||
verifier.setAutoclean( false );
|
||||
verifier.deleteDirectory( "consumer/target" );
|
||||
verifier.executeGoal( "validate" );
|
||||
verifier.executeGoal( "compile" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ public class MavenITmng3043BestEffortReactorResolutionTest
|
|||
verifier.deleteDirectory( "consumer-c/target" );
|
||||
verifier.deleteArtifacts( "org.apache.maven.its.mng3043" );
|
||||
verifier.setLogFileName( "log-test.txt" );
|
||||
verifier.executeGoal( "validate" );
|
||||
verifier.executeGoal( "test" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
|
@ -110,7 +110,7 @@ public class MavenITmng3043BestEffortReactorResolutionTest
|
|||
verifier.deleteDirectory( "consumer-c/target" );
|
||||
verifier.deleteArtifacts( "org.apache.maven.its.mng3043" );
|
||||
verifier.setLogFileName( "log-package.txt" );
|
||||
verifier.executeGoal( "initialize" );
|
||||
verifier.executeGoal( "package" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
|
|
|
@ -38,4 +38,20 @@ under the License.
|
|||
<module>consumer</module>
|
||||
</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>
|
||||
|
|
|
@ -47,11 +47,10 @@ under the License.
|
|||
<artifactId>maven-it-plugin-artifact</artifactId>
|
||||
<version>2.1-SNAPSHOT</version>
|
||||
<executions>
|
||||
<!-- For the purposes of this test, the "initialize" phase plays the role of the "package" phase -->
|
||||
<execution>
|
||||
<!-- mimic creation of test JAR -->
|
||||
<id>package-test-jar</id>
|
||||
<phase>initialize</phase>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>attach</goal>
|
||||
</goals>
|
||||
|
@ -64,7 +63,7 @@ under the License.
|
|||
<execution>
|
||||
<!-- mimic creation of EJB client JAR -->
|
||||
<id>package-ejb-client-jar</id>
|
||||
<phase>initialize</phase>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>attach</goal>
|
||||
</goals>
|
||||
|
|
|
@ -40,4 +40,31 @@ under the License.
|
|||
<module>consumer-b</module>
|
||||
<module>consumer-c</module>
|
||||
</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>
|
||||
|
|
Loading…
Reference in New Issue