You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by thomas2004 <th...@yahoo.de> on 2008/09/06 09:49:51 UTC

A questionm about settings in "settings.xml" of maven2

We know the default repo is "http://repo1.maven.org/maven2". But very often
some jars can not be downloaded from this repo. So one can configure other
repos in the "settings.xml", sothat if the jar can not be found from this
repo, it may be fpund from other. Following is my <mirror/>-settings. I am
not sure if it is correct:

[code]
	<mirror>
      <id>repo1.maven.org</id>
      <name>repo1 Mirror of http://repo1.maven.org/maven2</name>
      <url>http://repo1.maven.org/maven2</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
	<mirror>
      <id>ibiblio.org</id>
      <name>ibiblio Mirror of http://repo1.maven.org/maven2/</name>
      <url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
      <mirrorOf>legacy</mirrorOf>
    </mirror>
	<mirror>
      <id>repo2.maven.org</id>
      <name>repo2 Mirror of http://repo2.maven.org/maven2</name>
      <url>http://repo2.maven.org/maven2</url>
      <mirrorOf>legacy</mirrorOf>
    </mirror>
	<mirror>
      <id>jboss.com/maven2</id>
      <name>repo2 Mirror of http://repository.jboss.com/maven2/</name>
      <url>http://repository.jboss.com/maven2</url>
      <mirrorOf>legacy</mirrorOf>
    </mirror>
[/code]
-- 
View this message in context: http://www.nabble.com/A-questionm-about-%3Cmirror-%3E-settings-in-%22settings.xml%22-of-maven2-tp19343966p19343966.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org