On Mon, 10 Dec 2012 10:38:22 -0800 (PST)
James Moore <
ja...@banshee.com> wrote:
> On Monday, December 10, 2012 6:41:41 AM UTC-8, Mark Harrah wrote:
>
> > In order to do this, Ivy pings the remote repository looking for sources
> > and javadoc classifiers when resolving the metadata. This meant that
> > 'update' typically took 3x as long as necessary, so sbt disabled looking
> > for the classified artifacts and instead looks for them on-demand in the
> > 'update-classifiers' task. I thought IvyDE would look them up on demand as
> > well.
> >
> >
> Oh, wow. No wonder this was so frustrating to understand. I had no idea
> it could be timing dependent, so sometimes it would work and sometimes it
> would fail mysteriously with exactly the same configuration. I thought I
> was going crazy.
Sorry I wasn't clear. This isn't a race condition or anything and behavior isn't being enabled/disabled on the fly.
The default Ivy approach to look up classified artifacts at normal resolution time is just a bit slower than necessary. It requires a request to get the metadata (pom.xml) and then two more requests to check whether there is an artifact -sources.jar and -javadoc.jar. This is necessary because pom.xml does not declare classified artifacts. However, it is better to look for the sources and javadocs later, when the user runs 'update-classifiers'. So, sbt doesn't look up sources and javadocs.
> Is there any way to turn off that feature, or set the timeout to very long
> (a day...)? I want it to do the same thing, every time, always. I'd much
> prefer a hang over a partial complete.
It should do the same thing every time. Does the above explanation make more sense now or am I the one missing something?
-Mark
> (My local nexus server is on archaic hardware with little ram and multiple
> terabytes of storage. The first time you hit it for stuff, it's glacial;
> 10-20 seconds to respond to a request (Hellloooo, swap!). The next request
> is usually pretty fast. Replacing the hardware is something like #29 on my
> list of important things to do...)
>
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To view this discussion on the web visit
https://groups.google.com/d/msg/simple-build-tool/-/vOilMdnhamQJ.