java - How to set order of repositories in Maven settings.xml -


I have 3 repositories in my settings. Xml because I need artwork from all of them. Whenever dependency is not received, Maven's attempt

  is being downloaded: http: //some.server/mvn2repo/releases/org/apache/lucene/lucene-core/2.9.1 / ... [INFO] Unable to 'org.apache.lucene' resource: lucene-core: pom: 2.9.1 'Downloading in the repository: http: //some.server/mvn2repo/3rdParty/org/apache/lucene / Lucene-core / 2.9.1 / ... [INFO] Unable to 'org.apache.lucene' resource: lucene-core: pom: 2.9.1 'Downloading in the repository: http://repo1.maven.org / Maven2 / org / apache / lucine / louisin-cc-2.9.1 / lucin -core-2.9.1.pom & lt; Success & gt;   

All repositories, but most of the time, finds artwork in the center (repo 1). I want Maven to investigate this repo first. I tried to order announcements in settings.xml, but did not work. According to fgysin I also tried reverse order, which could not change anything.

My Maven Version:

  C: \ & gt; MVN-V Apache Maven 2.2.1 (R801777; 2009-08-06 21: 16: 01 + 0200) Java Version: 1.6.0_15 Java Home: C: \ Program Files \ Java \ jdk1.6.0_15 \ jre Default Location : "Windows Vista" version: "6.0" Arc: "MD 64" family: "Window"   

My settings.xml < / Code> & lt; Profile & gt; & Lt; Profile & gt; & Lt; ID & gt; Space & lt; / Id & gt; & Lt; Treasures & gt; & Lt; Stores & gt; & Lt; Release & gt; & Lt; Enabled & gt; True & lt; / Enable & gt; & Lt; / Release & gt; & Lt; Snapshot & gt; & Lt; Enabled & gt; False & lt; / Enable & gt; & Lt; / Snapshot & gt; & Lt; ID & gt; S1-Release & lt; / Id & gt; & Lt; Name & gt; System forest release & lt; / Name & gt; & Lt; URL & gt; Http: //some.server/mvn2repo/releases< / URL & gt; & Lt; / Stores & gt; & Lt; Stores & gt; & Lt; Release & gt; & Lt; Enabled & gt; True & lt; / Enable & gt; & Lt; / Release & gt; & Lt; Snapshot & gt; & Lt; Enabled & gt; False & lt; / Enable & gt; & Lt; / Snapshot & gt; & Lt; ID & gt; S1-3rdParty & lt; / Id & gt; & Lt; Name & gt; System is a third party release & lt; / Name & gt; & Lt; URL & gt; Http: //some.server/mvn2repo/3rdParty< / URL & gt; & Lt; / Stores & gt; & Lt; Stores & gt; & Lt; Release & gt; & Lt; Enabled & gt; True & lt; / Enable & gt; & Lt; / Release & gt; & Lt; Snapshot & gt; & Lt; Enabled & gt; True & lt; / Enable & gt; & Lt; / Snapshot & gt; & Lt; ID & gt; Central & lt; / Id & gt; & Lt; URL & gt; Http: //repo1.maven.org/maven2< / URL & gt; & Lt; / Stores & gt; & Lt; / Treasures & gt; & Lt; PluginRepositories & gt; & Lt; PluginRepository & gt; & Lt; Release & gt; & Lt; Enabled & gt; True & lt; / Enable & gt; & Lt; / Release & gt; & Lt; Snapshot & gt; & Lt; Enabled & gt; True & lt; / Enable & gt; & Lt; / Snapshot & gt; & Lt; ID & gt; Central & lt; / Id & gt; & Lt; URL & gt; Http: //repo1.maven.org/maven2< / URL & gt; & Lt; / PluginRepository & gt; & Lt; / PluginRepositories & gt; & Lt; / Profile & gt; & Lt; / Profile & gt; & Lt; ActiveProfiles & gt; & Lt; ActiveProfile & gt; Space & lt; / ActiveProfile & gt; & Lt; / ActiveProfiles & gt;

As far as I know that the repository order in your pom.xml also includes repository access Decide the order.

In the repos config.xml as the settings I have read that the repo sequence is interesting inverted

here is a post where a person is of this curiosity Explains:


Comments