mirror of https://github.com/apache/maven.git
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:
parent
da331ac3f5
commit
8dfc2df626
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -47,6 +47,8 @@ public class MyMojo
|
|||
{
|
||||
Artifact artifact = (Artifact) it.next();
|
||||
|
||||
System.out.println( artifact );
|
||||
|
||||
if ( "commons-cli".equals( artifact.getArtifactId() ) )
|
||||
{
|
||||
foundCommonsCli = true;
|
||||
|
|
|
@ -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.
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue