Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup Artifactory to use https://maven.google.com as a remote repo?

I have an Android project that is being updated with a version of gradle greater than 3.0. Previously the gradle plugin was retrieved out of jcenter(), but now Google has moved it to their own repository.

I want to setup the Google maven server as a remote server in Artifactory, but it seems like my Android project doesn't seem to be finding it at the google remote server that I have set up.

I need it setup this specific way because the company wants controlled builds to be reproducible in an offline manner that only goes to servers on the internal network and not to the web. So just going to the google maven server in the future is not good enough per company SOP.

I have the remote setup as:

URL: https://maven.google.com
Repository Layout: maven-2-default
Repository Layout Mapping: maven-2-default

Do I need to be using the latest version of artifactory as I am currently on 4.9.0. I would have to go through the IT group at the company to upgrade the version, so that is why I haven't make it my first option.

Thanks!

like image 473
Brian Avatar asked Jan 29 '18 15:01

Brian


1 Answers

https://maven.google.com Redirects to https://dl.google.com/dl/android/maven2/index.html, but Artifactory raise an error 404, you need config https://dl.google.com/dl/ in the remote repo

Best regards.

like image 111
emedinag Avatar answered Sep 19 '22 11:09

emedinag