Weird behaviour during `update`

23 views
Skip to first unread message

ijuma

unread,
Jun 7, 2011, 10:59:50 AM6/7/11
to simple-b...@googlegroups.com
Hi all,

After deleting my .ivy2 folder, I am seeing very weird behaviour from SBT 0.10.0 during `update`. It tries to download the source and constructs a weird path. An example:


This causes the build to fail. I was under the impression that sources would only be downloaded during update-classifiers. Also, it is not using Maven2 repository syntax even though that repository does. Any idea of what's going on here?

Best,
Ismael

ijuma

unread,
Jun 7, 2011, 11:26:54 AM6/7/11
to simple-b...@googlegroups.com
I forgot to include the error message at the end (there are many of these, but I'll include the matching one for the previous email):

[error] download failed: org.uncommons#uncommons-maths;1.2.2!uncommons-maths.java-source

Best,
Ismael

Mark Harrah

unread,
Jun 7, 2011, 10:01:38 PM6/7/11
to simple-b...@googlegroups.com

It isn't obvious to me what the problem is, sorry. You can try emailing me the debug output if you want.

-Mark

ijuma

unread,
Jun 8, 2011, 4:18:03 AM6/8/11
to simple-b...@googlegroups.com
On Wednesday, 8 June 2011 03:01:38 UTC+1, Mark Harrah wrote:

It isn't obvious to me what the problem is, sorry.  You can try emailing me the debug output if you want.

This is extremely weird. Basically it only happens to dependencies that are in an internal repository (served over HTTP) _and_ that actually have source. So, SBT somehow figures that it has the source and tries to download it during `update`, but it uses Ivy syntax instead of Maven syntax. So it fails. However, adding withSources for the dependency fixes the problem! It uses Maven syntax after that and downloads the source artifact. Not sure if that helps, but I'll try to email you a full log later. I need to remove the workaround and delete my .ivy2 folder before I can reproduce it.

Best,
Ismael

Reply all
Reply to author
Forward
0 new messages