[MNG-7898] Missing .mvn directory should not be reported in quiet mode

This commit is contained in:
Slawomir Jaranowski 2023-10-04 23:15:03 +02:00
parent 464536d05b
commit 5797211100
2 changed files with 1 additions and 8 deletions

View File

@ -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<String> log = verifier.loadLines("maven.log", "UTF-8");