You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by To...@KE4KUG.net on 2007/12/18 02:32:56 UTC
Buildr and SNAPSHOT revisions: update policy?
Hello,
I hope I will be forgiven for lately sending 'complaints' to the list
without also a patch. I've been very busy lately and I'm sending this
in the hope that *somebody* understands the problem I'm trying to
describe and has the ability to repair.
The problem is, when my project depends on artifacts from the Maven
repo that are at -SNAPSHOT versions, I'm having to 'manually' nuke the
cache repository before running buildr, because otherwise my
aggregator is pulling in the same old (stale) SNAPSHOTs that were
previously cached, the availability of a newer SNAPSHOT in the remote
repo notwithstanding.
In Maven, we used to fidget with settings.xml to change the update
policy to be more aggressive about checking for updated SNAPSHOTs.
In Buildr, it appears as though there is NO update policy; at least
the evidence of my project makes it appear that Buildr does neither
check daily, nor with any other frequency: if the artifact with the
given maven coordinates is already in the cache repo, that's the one
that will be used, no matter how much older it is than the remote repo.
Maybe someday real soon, I'll post a test case that fails. For now,
I'm hoping somebody has time on their hands and an inclination to fix
my problem. In the meantime, the workaround is (as stated above) to
nuke the cache repo before calling rake.
Thanks,
/TOMMY
Re: Buildr and SNAPSHOT revisions: update policy?
Posted by jdecarvalho <ju...@gmail.com>.
Hi Guys,
Is this still the case? Do we not handle updating snapshot artifacts yet?
It's been a year and this feature is preventing us from using Buildr in our
environment.
If anyone has an idea on how I can even hack this up temporarily, I would be
eternally grateful.
Thank you,
- Juliano DeCarvalho
Tommy Knowlton wrote:
>
> Hello,
> I hope I will be forgiven for lately sending 'complaints' to the list
> without also a patch. I've been very busy lately and I'm sending this
> in the hope that *somebody* understands the problem I'm trying to
> describe and has the ability to repair.
>
> The problem is, when my project depends on artifacts from the Maven
> repo that are at -SNAPSHOT versions, I'm having to 'manually' nuke the
> cache repository before running buildr, because otherwise my
> aggregator is pulling in the same old (stale) SNAPSHOTs that were
> previously cached, the availability of a newer SNAPSHOT in the remote
> repo notwithstanding.
>
> In Maven, we used to fidget with settings.xml to change the update
> policy to be more aggressive about checking for updated SNAPSHOTs.
> In Buildr, it appears as though there is NO update policy; at least
> the evidence of my project makes it appear that Buildr does neither
> check daily, nor with any other frequency: if the artifact with the
> given maven coordinates is already in the cache repo, that's the one
> that will be used, no matter how much older it is than the remote repo.
>
> Maybe someday real soon, I'll post a test case that fails. For now,
> I'm hoping somebody has time on their hands and an inclination to fix
> my problem. In the meantime, the workaround is (as stated above) to
> nuke the cache repo before calling rake.
>
> Thanks,
> /TOMMY
>
>
>
>
>
>
--
View this message in context: http://www.nabble.com/Buildr-and-SNAPSHOT-revisions%3A-update-policy--tp14389091p20464394.html
Sent from the Buildr - User mailing list archive at Nabble.com.
Re: Buildr and SNAPSHOT revisions: update policy?
Posted by Rhett Sutphin <rh...@detailedbalance.net>.
On Dec 17, 2007, at 7:32 PM, Tommy@KE4KUG.net wrote:
> I hope I will be forgiven for lately sending 'complaints' to the
> list without also a patch. I've been very busy lately and I'm
> sending this in the hope that *somebody* understands the problem
> I'm trying to describe and has the ability to repair.
>
> The problem is, when my project depends on artifacts from the Maven
> repo that are at -SNAPSHOT versions, I'm having to 'manually' nuke
> the cache repository before running buildr, because otherwise my
> aggregator is pulling in the same old (stale) SNAPSHOTs that were
> previously cached, the availability of a newer SNAPSHOT in the
> remote repo notwithstanding.
>
> In Maven, we used to fidget with settings.xml to change the update
> policy to be more aggressive about checking for updated SNAPSHOTs.
> In Buildr, it appears as though there is NO update policy; at least
> the evidence of my project makes it appear that Buildr does neither
> check daily, nor with any other frequency: if the artifact with the
> given maven coordinates is already in the cache repo, that's the
> one that will be used, no matter how much older it is than the
> remote repo.
That's correct -- the SNAPSHOT support I contributed a few weeks ago
only downloads the snapshots once. It's my intent to add an update
mechanism, and Assaf made some suggestions about how it could work,
but I haven't had a chance to implement it yet.
Rhett