I have a settings.xml which looks like below:- <settings xmlns="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"> <servers> <server> <id>nexusReleases</id> <username>jabong</username> <password>jabong123</password> </server> <server> <id>nexusSnapshots</id> <username>jabong</username> <password>jabong123</password> </server> </servers>
<profiles> <profile> <id>space</id> <repositories> <repository> <id>central</id> <url>http://repo1.maven.org/maven2</url> </repository> <repository> <id>nReleases</id> <name>Releases</name> <url>http://someserver/repository/maven-releases/</url> </repository> <repository> <id>nSnapshots</id> <name>Snapshots</name> <url>http://someserver/repository/maven-snapshots/</url> </repository> </repositories> </profile> </profiles> <activeProfiles> <activeProfile>space</activeProfile> </activeProfiles> </settings> 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.