I'm using Grape in a script that automatically grabs dependencies.
Some dependencies are artifacts from my own Maven projects and are
snapshots. Problem is, if the local grape cache, ~/.groovy/grapes,
already contains an artifact with the named groupId, artifactId, and
version (whatever-SNAPSHOT), grape won't grab the newer version of the
snapshot and use it because it thinks that it's got the right version
based on the version identifier but not on the artifact file's date
stamp.
How do I tell Grape to check Maven repos for updated versions of
snapshots and force it to update the Grape cache with those?
-matthew
--
mailto:mat...@matthewadams.me
skype:matthewadams12
yahoo:matthewadams
aol:matthewadams12
google-talk:matthew...@gmail.com
msn:mat...@matthewadams.me
http://matthewadams.me
http://www.linkedin.com/in/matthewadams
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
This is actually more of an Ivy issue, and the last time I had to deal
with that problem many moons ago there was no way to deal with that
automagically. It could be helpful if you would ask on the Ivy list
what the best way to do automatic snapshots updates is and let us know
what they say.
One thing I've done for dev purposes is have a script that nukes the
snapshots that I run when necessary. Of course when the build machine
and the client machine are the same, I just have the build script
install the new snapshot in the cache.
Jim
Matthew Adams wrote:
> Hi all,
>
> I'm using Grape in a script that automatically grabs dependencies.
> Some dependencies are artifacts from my own Maven projects and are
> snapshots. Problem is, if the local grape cache, ~/.groovy/grapes,
> already contains an artifact with the named groupId, artifactId, and
> version (whatever-SNAPSHOT), grape won't grab the newer version of the
> snapshot and use it because it thinks that it's got the right version
> based on the version identifier but not on the artifact file's date
> stamp.
>
> How do I tell Grape to check Maven repos for updated versions of
> snapshots and force it to update the Grape cache with those?
>
> -matthew
>
> Darn good question.
>
Great -- that's just what I want to hear. :(
> This is actually more of an Ivy issue, and the last time I had to deal with
> that problem many moons ago there was no way to deal with that
> automagically. It could be helpful if you would ask on the Ivy list what
> the best way to do automatic snapshots updates is and let us know what they
> say.
>
Will do.
> One thing I've done for dev purposes is have a script that nukes the
> snapshots that I run when necessary. Of course when the build machine and
> the client machine are the same, I just have the build script install the
> new snapshot in the cache.
>
That's what I did, too. :(