Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use mirrorOf in Maven

Tags:

maven

nexus

What is the difference between using

<mirrorOf>central</mirrorOf>

and

   <mirrorOf>*</mirrorOf>

We have a Nexus server running proxied to the Maven public repository and using "*" instead of "central" downloads some artifiacts but not all.

Reading http://maven.apache.org/guides/mini/guide-mirror-settings.html does not suggest what could cause this ?

like image 646
blue-sky Avatar asked Oct 01 '22 08:10

blue-sky


1 Answers

<mirrorOf>central</mirrorOf>

says if request comes to lookup for central maven repository look in its mirror instead

where

<mirrorOf>*</mirrorOf>

says for any request to download from any repository look in this mirrored repository

if you have second and if it is failing to download some artifacts it could be because you are not proxying certain repository in your own nexus repository

like image 81
jmj Avatar answered Nov 05 '22 07:11

jmj