From 6a39df48adf139aa2c9ef1db1bd6ac4f5e7e227f Mon Sep 17 00:00:00 2001
From: Elias Ricken de Medeiros
<26007058+erdemedeiros@users.noreply.github.com>
Date: Mon, 7 Dec 2020 14:29:52 +0100
Subject: [PATCH] Make sure artifacts look up is done first on Maven Central
While looking up for artifacts to download, Maven will use first the repositories defined in the settings and if it's not found it will default to Maven Central. Considering that most of the dependencies are coming from Central it's better to put Maven Central in the first place in the repository list to reduce the amount of time spent looking for the artifact in the wrong repository.
---
.travis.settings.xml | 21 +++++++++++++++++++++
pom.xml | 42 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+)
diff --git a/.travis.settings.xml b/.travis.settings.xml
index e60b0e0c4c..7f7046689e 100644
--- a/.travis.settings.xml
+++ b/.travis.settings.xml
@@ -6,6 +6,15 @@
true
+
+ central
+ Central Repository
+ https://repo.maven.apache.org/maven2
+ default
+
+ false
+
+
alfresco-internal
@@ -19,6 +28,18 @@
+
+ central
+ Central Repository
+ https://repo.maven.apache.org/maven2
+ default
+
+ false
+
+
+ never
+
+
alfresco-internal
Alfresco Internal Repository
diff --git a/pom.xml b/pom.xml
index 2f571e587d..dc595daa68 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,6 +35,15 @@
+
+ central
+ Central Repository
+ https://repo.maven.apache.org/maven2
+ default
+
+ false
+
+
alfresco-internal
Alfresco Internal Repository
@@ -51,6 +60,18 @@
+
+ central
+ Central Repository
+ https://repo.maven.apache.org/maven2
+ default
+
+ false
+
+
+ never
+
+
alfresco-private
Alfresco Internal Repository
@@ -99,12 +120,33 @@
rm-benchmark
+
+ central
+ Central Repository
+ https://repo.maven.apache.org/maven2
+ default
+
+ false
+
+
alfresco-internal
https://artifacts.alfresco.com/nexus/content/groups/private
+
+ central
+ Central Repository
+ https://repo.maven.apache.org/maven2
+ default
+
+ false
+
+
+ never
+
+
alfresco-private
https://artifacts.alfresco.com/nexus/content/groups/private