You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/07/05 08:43:43 UTC

[camel] branch CAMEL-19577 created (now f6b4b7f06f2)

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

davsclaus pushed a change to branch CAMEL-19577
in repository https://gitbox.apache.org/repos/asf/camel.git


      at f6b4b7f06f2 CAMEL-19577: Use mavencentral as repo id in maven resolver

This branch includes the following new commits:

     new f6b4b7f06f2 CAMEL-19577: Use mavencentral as repo id in maven resolver

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.



[camel] 01/01: CAMEL-19577: Use mavencentral as repo id in maven resolver

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

davsclaus pushed a commit to branch CAMEL-19577
in repository https://gitbox.apache.org/repos/asf/camel.git

commit f6b4b7f06f253264687ac4016b67fa73c110a80b
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Jul 5 10:43:21 2023 +0200

    CAMEL-19577: Use mavencentral as repo id in maven resolver
---
 .../main/java/org/apache/camel/tooling/maven/MavenDownloaderImpl.java   | 2 +-
 .../camel-tooling-maven/src/main/resources/known-maven-repos.properties | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/tooling/camel-tooling-maven/src/main/java/org/apache/camel/tooling/maven/MavenDownloaderImpl.java b/tooling/camel-tooling-maven/src/main/java/org/apache/camel/tooling/maven/MavenDownloaderImpl.java
index 3340e24fbb5..2f6524fbf35 100644
--- a/tooling/camel-tooling-maven/src/main/java/org/apache/camel/tooling/maven/MavenDownloaderImpl.java
+++ b/tooling/camel-tooling-maven/src/main/java/org/apache/camel/tooling/maven/MavenDownloaderImpl.java
@@ -1086,7 +1086,7 @@ public class MavenDownloaderImpl extends ServiceSupport implements MavenDownload
         Set<String> repositoryURLs = new HashSet<>();
 
         // add maven central first - always
-        centralRepository = new RemoteRepository.Builder("central", "default", MAVEN_CENTRAL_REPO)
+        centralRepository = new RemoteRepository.Builder("mavencentral", "default", MAVEN_CENTRAL_REPO)
                 .setReleasePolicy(defaultPolicy)
                 .setSnapshotPolicy(POLICY_DISABLED)
                 .build();
diff --git a/tooling/camel-tooling-maven/src/main/resources/known-maven-repos.properties b/tooling/camel-tooling-maven/src/main/resources/known-maven-repos.properties
index a7713de3ea1..d38736125e5 100644
--- a/tooling/camel-tooling-maven/src/main/resources/known-maven-repos.properties
+++ b/tooling/camel-tooling-maven/src/main/resources/known-maven-repos.properties
@@ -16,6 +16,7 @@
 ## ---------------------------------------------------------------------------
 
 central = https://repo1.maven.org/maven2
+mavencentral = https://repo1.maven.org/maven2
 apache-snapshot = https://repository.apache.org/snapshots
 atlassian = https://packages.atlassian.com/maven-external
 jboss = https://repository.jboss.org/nexus/service/local/repositories/thirdparty-releases/content