o Polished IT suite

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@785812 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-06-17 21:27:26 +00:00
parent da331ac3f5
commit 8dfc2df626
5 changed files with 24 additions and 5 deletions

View File

@ -38,7 +38,8 @@ public class MavenITmng4207PluginWithLog4JTest
}
/**
* Test that exclusions defined on a dependency apply to its transitive dependencies as well.
* Test that a plugin that depends on log4j and employes the artifact resolver does not die when using
* commons-http to resolve an artifact.
*/
public void testit()
throws Exception
@ -46,6 +47,7 @@ public class MavenITmng4207PluginWithLog4JTest
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-4207" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.setAutoclean( false );
verifier.executeGoal( "initialize" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();

View File

@ -115,6 +115,12 @@ under the License.
<version>${itPluginVersion}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-log4j</artifactId>
<version>${itPluginVersion}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-log-file</artifactId>

View File

@ -47,6 +47,8 @@ public class MyMojo
{
Artifact artifact = (Artifact) it.next();
System.out.println( artifact );
if ( "commons-cli".equals( artifact.getArtifactId() ) )
{
foundCommonsCli = true;

View File

@ -1 +0,0 @@
Fill this in with a description of the scenario this test attempts to check. Also include instructions for running the test manually from the command line.

View File

@ -22,11 +22,17 @@ under the License.
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.mngXXXX</groupId>
<groupId>org.apache.maven.its.mng4208</groupId>
<artifactId>test</artifactId>
<version>0.1</version>
<packaging>jar</packaging>
<name>Maven Integration Test :: MNG-4208</name>
<description>
Test that a plugin that depends on log4j and employes the artifact resolver does not die when using
commons-http to resolve an artifact.
</description>
<build>
<extensions>
<extension>
@ -34,16 +40,20 @@ under the License.
<artifactId>wagon-webdav-jackrabbit</artifactId>
<version>1.0-beta-5</version>
</extension>
<!--extension>
<!--
FWIW, adding the extension below would make the test pass but it has to work with the bundled wagon, too.
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http</artifactId>
<version>1.0-beta-5</version>
</extension-->
</extension>
-->
</extensions>
<plugins>
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-log4j</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<groupId>test</groupId>
<artifactId>test</artifactId>