Configuring Google as Your Remote Maven Repository

Configuring Google as Your Remote Maven Repository

AuthorFullName__c
David Pinhas
articleNumber
000004518
ft:sourceType
Salesforce
FirstPublishedDate
2019-07-31T14:51:28Z
lastModifiedDate
2023-01-29
VersionNumber
8

To set up the Google Maven repository, https://maven.google.com, you actually need to pull files from "dl.google.com". Set up a new remote repository in Artifactory UI > Admin tab > Repositories > Remote.

Click New in the upper right side of the Remote Repositories menu. Choose Maven as the Package Type and configure the URL, as follows: 
User-added image

To test your newly created Remote Google Repository, you should try downloading an Android POM file via the following URL endpoint convention:

http://<Artifactory URL>/artifactory/<Remote Repository Name>/android/maven2/android/arch/core/common/1.1.1/common-1.1.1.pom
For example:
curl -u admin http://artifactory.com/artifactory/google-maven/android/maven2/android/arch/core/common/1.1.1/common-1.1.1.pom
User-added image