diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/IntegrationTestSuite.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/IntegrationTestSuite.java index d94eb7a01b..d30d0817d9 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/IntegrationTestSuite.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/IntegrationTestSuite.java @@ -33,11 +33,23 @@ public class IntegrationTestSuite public static Test suite() throws VerificationException { - String mavenVersion = new Verifier( "" ).getMavenVersion(); + Verifier verifier = null; + try + { + verifier = new Verifier( "" ); + String mavenVersion = verifier.getMavenVersion(); - out.println( "Running integration tests for Maven " + mavenVersion ); + out.println( "Running integration tests for Maven " + mavenVersion ); - System.setProperty( "maven.version", mavenVersion ); + System.setProperty( "maven.version", mavenVersion ); + } + finally + { + if ( verifier != null ) + { + verifier.resetStreams(); + } + } TestSuite suite = new TestSuite(); suite.addTestSuite( MavenIT0000Test.class );