diff --git a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng7112ProjectsWithNonRecursiveTest.java b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng7112ProjectsWithNonRecursiveTest.java index 8d3b7423fa..68cadf9606 100644 --- a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng7112ProjectsWithNonRecursiveTest.java +++ b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng7112ProjectsWithNonRecursiveTest.java @@ -43,8 +43,9 @@ public class MavenITmng7112ProjectsWithNonRecursiveTest throws IOException, VerificationException { final File projectDir = ResourceExtractor.simpleExtractResources( getClass(), PROJECT_PATH ); - newVerifier( projectDir.getAbsolutePath() ).addCliArgument( "clean" ); - newVerifier( projectDir.getAbsolutePath() ).execute(); + Verifier cleaner = newVerifier( projectDir.getAbsolutePath() ); + cleaner.addCliArgument( "clean" ); + cleaner.execute(); final Verifier verifier = newVerifier( projectDir.getAbsolutePath() ); @@ -67,8 +68,9 @@ public class MavenITmng7112ProjectsWithNonRecursiveTest throws IOException, VerificationException { final File projectDir = ResourceExtractor.simpleExtractResources( getClass(), PROJECT_PATH ); - newVerifier( projectDir.getAbsolutePath() ).addCliArgument( "clean" ); - newVerifier( projectDir.getAbsolutePath() ).execute(); + Verifier cleaner = newVerifier( projectDir.getAbsolutePath() ); + cleaner.addCliArgument( "clean" ); + cleaner.execute(); final Verifier verifier = newVerifier( projectDir.getAbsolutePath() );