From 578731797122c311186656e4a2b032da46659b2d Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Mon, 19 Jun 2023 17:03:57 +0200 Subject: [PATCH] [MNG-4645] Fix IT to not use the newly supported syntax (#266) --- .../org/apache/maven/it/MavenITmng3748BadSettingsXmlTest.java | 2 +- its/core-it-suite/src/test/resources/mng-3748/settings.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3748BadSettingsXmlTest.java b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3748BadSettingsXmlTest.java index 93b69c9a19..39aa2c4baa 100644 --- a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3748BadSettingsXmlTest.java +++ b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3748BadSettingsXmlTest.java @@ -69,7 +69,7 @@ public class MavenITmng3748BadSettingsXmlTest extends AbstractMavenIntegrationTe List lines = verifier.loadLines(verifier.getLogFileName(), null); boolean foundWarning = false; for (String line : lines) { - if (line.matches("(?i)\\[WARNING\\].*unrecognised tag.+repositories.+2.*")) { + if (line.matches("(?i)\\[WARNING\\].*unrecognised tag.+unknown.+2.*")) { foundWarning = true; break; } diff --git a/its/core-it-suite/src/test/resources/mng-3748/settings.xml b/its/core-it-suite/src/test/resources/mng-3748/settings.xml index c60f95af6e..a144c1f1e3 100644 --- a/its/core-it-suite/src/test/resources/mng-3748/settings.xml +++ b/its/core-it-suite/src/test/resources/mng-3748/settings.xml @@ -1,5 +1,5 @@ - + central http://central @@ -10,5 +10,5 @@ true - + \ No newline at end of file