diff --git a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0479OverrideCentralRepoTest.java b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0479OverrideCentralRepoTest.java
index 1db0095da5..8e717894c7 100644
--- a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0479OverrideCentralRepoTest.java
+++ b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0479OverrideCentralRepoTest.java
@@ -23,7 +23,6 @@ import org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor;
import java.io.File;
-import java.util.Collections;
import java.util.Properties;
/**
@@ -60,7 +59,9 @@ public class MavenITmng0479OverrideCentralRepoTest
verifier.setAutoclean( false );
verifier.deleteDirectory( "target" );
- verifier.setCliOptions( Collections.singletonList( "-s settings.xml" ) );
+ verifier.filterFile( "settings.xml", "settings.xml", "UTF-8", verifier.newDefaultFilterProperties() );
+ verifier.getCliOptions().add( "--settings" );
+ verifier.getCliOptions().add( "settings.xml" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-expression:2.1-SNAPSHOT:eval" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
diff --git a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0505VersionRangeTest.java b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0505VersionRangeTest.java
index e01ca8dcf7..fa5b3eb106 100644
--- a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0505VersionRangeTest.java
+++ b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0505VersionRangeTest.java
@@ -47,6 +47,9 @@ public class MavenITmng0505VersionRangeTest
verifier.setAutoclean( false );
verifier.deleteDirectory( "target" );
verifier.deleteArtifacts( "org.apache.maven.its.mng0505" );
+ verifier.filterFile( "settings.xml", "settings.xml", "UTF-8", verifier.newDefaultFilterProperties() );
+ verifier.getCliOptions().add( "--settings" );
+ verifier.getCliOptions().add( "settings.xml" );
verifier.executeGoal( "validate" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
diff --git a/its/core-it-suite/src/test/resources/mng-0479/test/settings.xml b/its/core-it-suite/src/test/resources/mng-0479/test/settings.xml
index 3474c976d4..0ba77e1761 100644
--- a/its/core-it-suite/src/test/resources/mng-0479/test/settings.xml
+++ b/its/core-it-suite/src/test/resources/mng-0479/test/settings.xml
@@ -33,14 +33,14 @@ under the License.
central
it0043
- file:///${basedir}/target/maven-core-it0043-repo
+ @baseurl@/target/maven-core-it0043-repo
central
it0043
- file:///${basedir}/target/maven-core-it0043-repo
+ @baseurl@/target/maven-core-it0043-repo
diff --git a/its/core-it-suite/src/test/resources/mng-0505/pom.xml b/its/core-it-suite/src/test/resources/mng-0505/pom.xml
index 8c5a05271c..5c77ebff7c 100644
--- a/its/core-it-suite/src/test/resources/mng-0505/pom.xml
+++ b/its/core-it-suite/src/test/resources/mng-0505/pom.xml
@@ -33,7 +33,7 @@ under the License.
- central
+ maven-core-it
file:///${basedir}/repo
ignore
diff --git a/its/core-it-suite/src/test/resources/mng-0505/settings.xml b/its/core-it-suite/src/test/resources/mng-0505/settings.xml
new file mode 100644
index 0000000000..0018fe4247
--- /dev/null
+++ b/its/core-it-suite/src/test/resources/mng-0505/settings.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+ mng-0505
+ mng-0505
+ @baseurl@/target/null
+ central
+
+
+