Skip to content

Commit 7f56c19

Browse files
committed
[MNG-4645] Fix IT to not use the newly supported syntax
1 parent dd92c36 commit 7f56c19

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3748BadSettingsXmlTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public void testit()
8383
boolean foundWarning = false;
8484
for ( String line : lines )
8585
{
86-
if ( line.matches( "(?i)\\[WARNING\\].*unrecognised tag.+repositories.+2.*" ) )
86+
if ( line.matches( "(?i)\\[WARNING\\].*unrecognised tag.+unknown.+2.*" ) )
8787
{
8888
foundWarning = true;
8989
break;

core-it-suite/src/test/resources/mng-3748/settings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<settings>
2-
<repositories>
2+
<unknown>
33
<repository>
44
<id>central</id>
55
<url>http://central</url>
@@ -10,5 +10,5 @@
1010
<enabled>true</enabled>
1111
</snapshots>
1212
</repository>
13-
</repositories>
13+
</unknown>
1414
</settings>

0 commit comments

Comments
 (0)