Hi,
I use several plugins in my parent-pom.
Some of them are release versions, others are snapshot-versions.
And they are both, from apache and codehaus.
So i configured the pluginRepos for both of them (as well as my internal
repo).
<pluginRepositories>
<pluginRepository>
<id>apache-snapshots</id>
<name>Apache snapshots</name>
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
</pluginRepository>
<pluginRepository>
<id>codehaus-snapshots</id>
<name>Codehaus snapshots</name>
<url>http://snapshots.maven.codehaus.org/maven2</url>
</pluginRepository>
<pluginRepository>
<id>internal-maven-repository-http</id>
<name>Internal Maven Repository</name>
<url>${repository.url.http}</url>
</pluginRepository>
</pluginRepositories>
The problem is that maven tries to download some of the release plugins from
the snapshot repos first, instead of the central repo.
in my settings.xml i have configured some mirrors as well:
<settings>
<mirrors>
<mirror>
<!-- The Netherlands, Amsterdam -->
<id>ggi-project.org</id>
<url>http://ftp.ggi-project.org/pub/packages/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<!-- The Netherlands, Amsterdam -->
<id>sateh.com</id>
<url>http://maven.sateh.com/repository</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<!-- Denmark -->
<id>dotsrc.org</id>
<url>http://mirrors.dotsrc.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<!-- Denmark -->
<id>sunsite.dk</id>
<url>http://mirrors.sunsite.dk/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<!-- Australia, Queensland -->
<id>planetmirror.com</id>
<url>http://downloads.planetmirror.com/pub/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<!-- United States, Louisiana -->
<id>lsu.edu</id>
<url>http://ibiblio.lsu.edu/main/pub/packages/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<!-- United States, North Carolina -->
<id>ibiblio.net</id>
<url>http://www.ibiblio.net/pub/packages/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</settings>
but how can i define the order in which the repositories are looked up??
Do i need to configre the central repository separately?
Maybe in a repository block??
like:
<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>http://www.ibiblio.net/pub/packages/maven2</url>
</repository>
</repositories>
thx 4 help
R.C.
--
View this message in context:
http://www.nabble.com/-M2--plugin-repositories-tf2500971.html#a6971849
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]