From 57972111007cdabcc6dff3995bfe324b4511c609 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Wed, 4 Oct 2023 23:15:03 +0200 Subject: [PATCH] [MNG-7898] Missing .mvn directory should not be reported in quiet mode --- .../apache/maven/it/MavenITmng3183LoggingToFileTest.java | 9 +-------- its/core-it-suite/src/test/resources/mng-4387/.mvn/empty | 0 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 its/core-it-suite/src/test/resources/mng-4387/.mvn/empty diff --git a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3183LoggingToFileTest.java b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3183LoggingToFileTest.java index d905981a74..f90ba8ebb8 100644 --- a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3183LoggingToFileTest.java +++ b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3183LoggingToFileTest.java @@ -67,14 +67,7 @@ public class MavenITmng3183LoggingToFileTest extends AbstractMavenIntegrationTes } } - if (getMavenVersion().getMajorVersion() < 4) { - assertEquals(Collections.EMPTY_LIST, stdout); - } else { - assertEquals(1, stdout.size()); - assertEquals( - "Unable to find the root directory. Create a .mvn directory in the root directory or add the root=\"true\" attribute on the root project's model to identify it.", - stdout.iterator().next()); - } + assertEquals(Collections.EMPTY_LIST, stdout); List log = verifier.loadLines("maven.log", "UTF-8"); diff --git a/its/core-it-suite/src/test/resources/mng-4387/.mvn/empty b/its/core-it-suite/src/test/resources/mng-4387/.mvn/empty deleted file mode 100644 index e69de29bb2..0000000000