You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ro...@apache.org on 2021/08/23 11:39:51 UTC

[activemq-artemis] branch main updated: NO-JIRA: use the google mirror for maven central to spread load and help reduce sporadic CI failures

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

robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new c300d58  NO-JIRA: use the google mirror for maven central to spread load and help reduce sporadic CI failures
c300d58 is described below

commit c300d58baac2f8b277e550472b4d4dde97a529f4
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Tue Aug 17 17:56:41 2021 +0100

    NO-JIRA: use the google mirror for maven central to spread load and help reduce sporadic CI failures
---
 .github/maven-settings.xml  | 53 +++++++++++++++++++++++++++++++++++++++++++++
 .github/workflows/build.yml | 10 ++++-----
 .travis.yml                 |  4 ++--
 3 files changed, 60 insertions(+), 7 deletions(-)

diff --git a/.github/maven-settings.xml b/.github/maven-settings.xml
new file mode 100644
index 0000000..65a7886
--- /dev/null
+++ b/.github/maven-settings.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<settings>
+  <profiles>
+    <profile>
+      <id>google-mirror</id>
+      <repositories>
+        <repository>
+          <id>google-maven-central</id>
+          <name>GCS Maven Central mirror</name>
+          <url>https://maven-central.storage-download.googleapis.com/maven2/</url>
+          <releases>
+            <enabled>true</enabled>
+          </releases>
+          <snapshots>
+            <enabled>false</enabled>
+          </snapshots>
+        </repository>
+      </repositories>
+      <pluginRepositories>
+        <pluginRepository>
+          <id>google-maven-central</id>
+          <name>GCS Maven Central mirror</name>
+          <url>https://maven-central.storage-download.googleapis.com/maven2/</url>
+          <releases>
+            <enabled>true</enabled>
+          </releases>
+          <snapshots>
+            <enabled>false</enabled>
+          </snapshots>
+        </pluginRepository>
+      </pluginRepositories>
+    </profile>
+  </profiles>
+  <activeProfiles>
+    <activeProfile>google-mirror</activeProfile>
+  </activeProfiles>
+</settings>
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 50e6fd5..cd24916 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -32,26 +32,26 @@ jobs:
       # By setting anything to org.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED we are disabling libaio loading on the testsuite
       - name: Build Main
         run: |
-          mvn -Dorg.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED=AnythingNotNull -Derrorprone -Pfast-tests -Pextra-tests -Ptests-CI -Pjmh install
+          mvn -s .github/maven-settings.xml -Dorg.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED=AnythingNotNull -Derrorprone -Pfast-tests -Pextra-tests -Ptests-CI -Pjmh install
 
       - name: Build Examples (JDK8 / -Prelease)
         if: matrix.java == '8'
         run: |
           cd examples
-          mvn install -Prelease
+          mvn -s ../.github/maven-settings.xml install -Prelease
 
       - name: Build Examples (JDK 11+ / -Pexamples,noRun)
         if: matrix.java != '8'
         run: |
           cd examples
-          mvn install -Pexamples,noRun
+          mvn -s ../.github/maven-settings.xml install -Pexamples,noRun
 
       - name: Javadoc Check (JDK8 / -Prelease)
         if: matrix.java == '8'
         run: |
-          mvn javadoc:javadoc -Prelease
+          mvn -s .github/maven-settings.xml javadoc:javadoc -Prelease
 
       - name: Javadoc Check (JDK 11+)
         if: matrix.java != '8'
         run: |
-          mvn javadoc:javadoc
+          mvn -s .github/maven-settings.xml javadoc:javadoc
diff --git a/.travis.yml b/.travis.yml
index 02e637d..e2a6d91 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,9 +24,9 @@ before_install:
 # By setting anything to org.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED we are disabling libaio loading on the testsuite
 script: 
 - set -e
-- mvn -ntp -Dorg.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED=AnythingNotNull -Dmaven.test.redirectTestOutputToFile=true -Derrorprone -Pfast-tests -Pextra-tests -Ptests-CI -Pjmh -B install
+- mvn -s .github/maven-settings.xml -ntp -Dorg.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED=AnythingNotNull -Dmaven.test.redirectTestOutputToFile=true -Derrorprone -Pfast-tests -Pextra-tests -Ptests-CI -Pjmh -B install
 - cd examples
-- mvn install -P${EXAMPLES_PROFILE} -B -q
+- mvn -s ../.github/maven-settings.xml install -P${EXAMPLES_PROFILE} -B -q
 
 cache:
   directories: