I just stumbled into a feature of maven-proxy which caused me some problems.

Assume you have three repositories defined in your maven-proxy: A, B and C.

In your pom you have specified the repository A and in your settings
have configured A to point to your maven-proxy installation. Because
maven-proxy aggregates the repositories the artifacts from the B and C
repositories are available even though you have not defined them in
your pom.

Normally this would not show up as an issue. The problem manifests as
soon as you start using SNAPSHOT version of artifacts, perhaps as part
of doing some work on maven itself. Due to the aggregation you will
find that you are using SNAPSHOT versions instead of the more stable
released versions.

My workaround was to not put SNAPSHOT repositories into your
maven-proxy configuration and to create a separate maven-proxy
installation that just contains the SNAPSHOTS.

I think maven-proxy should have used the repository id as part of the
mirror URL so that aggregation was never a side effect. So something
like:
   http://maven-proxy:9999/central/....

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to