alkemist/grails-snapshot-dependencies-fix — Issue #1: Support snapshots coming from both local AND remote repositories
Author: tfnico
Created: 2011-12-30 15:58:15+00:00
State: open

I have a snapshot dependency that can either come from my local repository, or from a remote maven repository (our company Nexus instance).

I want Grails/Ivy to grab whichever of these artifacts is the most recent one. If I've just build the artifact locally (with mvn install), I want that to be used. If our CI process has built and deployed an even newer snapshot into the company repository, I want the remote one to be downloaded and used instead.

I've tried configuring two resolvers: one for my local repo, and one for the remote, but I keep running into problems:

* The Local repository resolver seems not to work at all (I've tried making a workaround in a fork, but that leads to the remote-repo resolution being broken).
* If I configure two resolvers, it ends up grabbing the first result it can find.

It would be nice to know if it is not the intention of this fix to support this kind of workflow, or if I'm simply doing something wrong. Is upgrading to Grails 2.0 the (only) way to go?