Re: Order of maven repositories in settings.xml

2016-10-23 Thread Anders Hammar
IIRC they are checked in the reverse order compared to how they are
defined. That's probably undocumented though and could change between Maven
versions.

/Anders

On Sun, Oct 23, 2016 at 12:07 PM, Debraj Manna 
wrote:

> I have a settings.xml which looks like below:-
>
> http://maven.apache.org/SETTINGS/1.0.0; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="
> http://maven.apache.org/SETTINGS/1.0.0
> http://maven.apache.org/xsd/settings-1.0.0.xsd;>
>
>   
>  nexusReleases
>  jabong
>  jabong123
>   
>   
>  nexusSnapshots
>  jabong
>  jabong123
>   
>
>
> 
> 
> space
> 
>
> central
> http://repo1.maven.org/maven2
> 
> 
> nReleases
> Releases
> http://someserver/repository/maven-releases/
> 
>
> nSnapshots
> Snapshots
> http://someserver/repository/maven-snapshots/
>
> 
> 
> 
>
> 
> space
> 
> 
>
> I want maven to check repo1.maven.org first and then only look in
> someserver.
> Can some one let me know how this can be achieved?
>
> I am using maven 3.3.9.
>


Order of maven repositories in settings.xml

2016-10-23 Thread Debraj Manna
I have a settings.xml which looks like below:-

http://maven.apache.org/SETTINGS/1.0.0; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="
http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd;>
   
  
 nexusReleases
 jabong
 jabong123
  
  
 nexusSnapshots
 jabong
 jabong123
  
   



space

   
central
http://repo1.maven.org/maven2


nReleases
Releases
http://someserver/repository/maven-releases/

   
nSnapshots
Snapshots
http://someserver/repository/maven-snapshots/
   





space



I want maven to check repo1.maven.org first and then only look in someserver.
Can some one let me know how this can be achieved?

I am using maven 3.3.9.