diff --git a/core-it-suite/src/test/resources/mng-0294/user-settings.xml b/core-it-suite/src/test/resources/mng-0294/user-settings.xml index 162e42b24..472030e1c 100644 --- a/core-it-suite/src/test/resources/mng-0294/user-settings.xml +++ b/core-it-suite/src/test/resources/mng-0294/user-settings.xml @@ -31,7 +31,7 @@ under the License. central Apache Maven Integration Testing Repository - http://mirrors.ibiblio.org/pub/mirrors/maven/ + https://repo.maven.apache.org/maven2/ true @@ -44,7 +44,7 @@ under the License. central Apache Maven Integration Testing Repository - http://mirrors.ibiblio.org/pub/mirrors/maven/ + https://repo.maven.apache.org/maven2/ true diff --git a/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java b/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java index 213291392..dfc4dadb6 100644 --- a/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java +++ b/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java @@ -550,6 +550,16 @@ protected Verifier newVerifier( String basedir, String settings, boolean debug ) throws VerificationException { Verifier verifier = new Verifier( basedir, debug ); + verifier.getVerifierProperties().setProperty( "use.mavenRepoLocal", Boolean.FALSE.toString() ); + + verifier.setLocalRepo( new File( "target/it-local-repo" ).getAbsolutePath() ); + verifier.addCliArguments( "-Dmaven.repo.local=" + verifier.getLocalRepository() ); + + String mavenRepoLocal = System.getProperty( "maven.repo.local", null ); + if ( mavenRepoLocal != null ) + { + verifier.addCliArguments( "-Dmaven.repo.local.tail=" + mavenRepoLocal ); + } verifier.setAutoclean( false );