From c300d58baac2f8b277e550472b4d4dde97a529f4 Mon Sep 17 00:00:00 2001 From: Robbie Gemmell Date: Tue, 17 Aug 2021 17:56:41 +0100 Subject: [PATCH] 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(-) create mode 100644 .github/maven-settings.xml diff --git a/.github/maven-settings.xml b/.github/maven-settings.xml new file mode 100644 index 0000000000..65a788613e --- /dev/null +++ b/.github/maven-settings.xml @@ -0,0 +1,53 @@ + + + + + + google-mirror + + + google-maven-central + GCS Maven Central mirror + https://maven-central.storage-download.googleapis.com/maven2/ + + true + + + false + + + + + + google-maven-central + GCS Maven Central mirror + https://maven-central.storage-download.googleapis.com/maven2/ + + true + + + false + + + + + + + google-mirror + + diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 50e6fd51fa..cd249161f3 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 02e637dbdf..e2a6d919e2 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: