Hi -

I have a question about how mvn determines when to pull a snapshot
dependency from the local repository vs. the remote repository.  We have the
following scenario:

 CruiseControl publishes snapshot builds on each successful build.
 moduleA depends on moduleB and moduleC, all versions and dependencies are
SNAPSHOT versions.

If I install moduleC and then install moduleA (different mvn invocations),
it appears that installing moduleA pulls the jar from the remote snapshot
repository instead of using the local jar that I just installed even if the
remote version is older.

The behavior we expected to see is that moduleA is built with the latest
version of moduleB & moduleC regardless of location (local repo or remote
repo).

Does mvn use the maven-metadata xml to determine where to get the latest
version?  How does it resolve duplicate sources?

Hopefully that is clear enough...

Thanks-
Zak

Reply via email to