Configuring Google as Your Remote Maven Repository

AuthorFullName__c
Eden Bar
articleNumber
000004518
FirstPublishedDate
2019-07-31T14:51:28Z
lastModifiedDate
2025-05-15

Configuring Google as Your Remote Maven Repository

Note: 

This article covers proxying Google Maven library dependencies (e.g., androidx, Firebase) for use in Gradle/Maven builds and not for Android SDK platform/tool.


To set up the Google Maven repository, https://maven.google.com, you actually need to pull files from "https://dl.google.com/android/maven2". 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

Use the URL "https://dl.google.com/android/maven2" and ensure "Handle Releases" and "Handle Snapshots" are both enabled.

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/<repo-name>/android/arch/core/common/1.1.1/common-1.1.1.pom
For example:
curl -u admin http://artifactory.com//artifactory/<repo-name>/android/arch/core/common/1.1.1/common-1.1.1.pom
User-added image
Note:

The Test button in the Repository Configuration UI will report a failure even with the correct URL. This is expected - Google returns a 404 for direct access to https://dl.google.com/android/maven2, but artifact resolution through a virtual repository works correctly. Do not rely on the Test button to validate this remote.