Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Many Maven repositories in pom.xml or settings.xml mirrors

 
Pierre Le Roux
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I would like to declare repositories in pom.xml or mirrors in settings.xml.

My aim is to retrieve some artifact from maven central and some others from oss sonatype public.

for this i declared 2 repositories :
* either in my pom like this

* either in my settings.xml like this :


I would like Maven to do this process :
if the package doesn't exist on the first repository, it tries to find it on the second one.

Is there a way to do it without using a custom repository such as Archiva or nexus ?

Thanks for you help.
 
Pierre Le Roux
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK.

There's no problem for those who use Maven 2.2.1 but problem appears since Maven 3.

I just created a bug on http://jira.codehaus.org/browse/MNG-5241
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's good to know. I always expected the repositories to be searched in the order in which they appear.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic