[MNG-4645] Fix IT to not use the newly supported syntax (#266)

This commit is contained in:
Guillaume Nodet 2023-06-19 17:03:57 +02:00 committed by GitHub
parent 16a7489f46
commit 5787317971
2 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ public class MavenITmng3748BadSettingsXmlTest extends AbstractMavenIntegrationTe
List<String> 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;
}

View File

@ -1,5 +1,5 @@
<settings>
<repositories>
<unknown>
<repository>
<id>central</id>
<url>http://central</url>
@ -10,5 +10,5 @@
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</unknown>
</settings>