You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2022/11/18 11:25:03 UTC

[maven-integration-testing] branch chained-lrm created (now 62c24c085)

This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a change to branch chained-lrm
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git


      at 62c24c085 Chained LRM

This branch includes the following new commits:

     new 62c24c085 Chained LRM

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-integration-testing] 01/01: Chained LRM

Posted by cs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a commit to branch chained-lrm
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git

commit 62c24c0853c14051116093a1c6c4f42cf4075fb5
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Fri Nov 18 12:24:50 2022 +0100

    Chained LRM
---
 core-it-suite/src/test/resources/mng-0294/user-settings.xml    |  4 ++--
 .../org/apache/maven/it/AbstractMavenIntegrationTestCase.java  | 10 ++++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)

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.
         <repository>
           <id>central</id>
           <name>Apache Maven Integration Testing Repository</name>
-          <url>http://mirrors.ibiblio.org/pub/mirrors/maven/</url>
+          <url>https://repo.maven.apache.org/maven2/</url>
           <releases>
             <enabled>true</enabled>
           </releases>
@@ -44,7 +44,7 @@ under the License.
         <pluginRepository>
           <id>central</id>
           <name>Apache Maven Integration Testing Repository</name>
-          <url>http://mirrors.ibiblio.org/pub/mirrors/maven/</url>
+          <url>https://repo.maven.apache.org/maven2/</url>
           <releases>
             <enabled>true</enabled>
           </releases>
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 @@ public abstract class AbstractMavenIntegrationTestCase
         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 );