From 3db07b4fe448fb06b71e3752306d30860da452ff Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Wed, 25 Jan 2023 11:26:12 +0100 Subject: [PATCH] [MNG-7646] Fix IT broken by the change to not always read the whole reactor --- .../apache/maven/it/MavenITmng6118SubmoduleInvocation.java | 4 ++-- .../mng-6118-submodule-invocation-full-reactor/pom.xml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6118SubmoduleInvocation.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6118SubmoduleInvocation.java index 9a6fb1665..85de17dbb 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6118SubmoduleInvocation.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6118SubmoduleInvocation.java @@ -61,7 +61,7 @@ public void testInSubModule() throws Exception { // Compile the whole project first. Verifier verifier = newVerifier( testDir.getAbsolutePath() ); - verifier.addCliArgument( "compile" ); + verifier.addCliArgument( "package" ); verifier.execute(); final File submoduleDirectory = new File( testDir, "app" ); @@ -82,7 +82,7 @@ public void testWithFile() throws Exception { // Compile the whole project first. Verifier verifier = newVerifier( testDir.getAbsolutePath() ); - verifier.addCliArgument( "compile" ); + verifier.addCliArgument( "package" ); verifier.execute(); verifier = newVerifier( testDir.getAbsolutePath() ); diff --git a/core-it-suite/src/test/resources/mng-6118-submodule-invocation-full-reactor/pom.xml b/core-it-suite/src/test/resources/mng-6118-submodule-invocation-full-reactor/pom.xml index b894cbced..6dedae729 100644 --- a/core-it-suite/src/test/resources/mng-6118-submodule-invocation-full-reactor/pom.xml +++ b/core-it-suite/src/test/resources/mng-6118-submodule-invocation-full-reactor/pom.xml @@ -60,6 +60,11 @@ under the License. maven-compiler-plugin 3.10.1 + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M7 +