14

hey all, I'm getting the following error when trying to build a project via SBT in scala

[info] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
java.lang.IllegalStateException: impossible to get artifacts 
    when data has not been loaded. IvyNode = log4j#log4j;1.2.14

I don't see any of my projects referencing 1.2.14, nor is it in my .m2 or .ivy repositories. Not sure where to look for this one

a full error dump is here: http://pastebin.com/pM7NUhY0

thanks

Jim Garrison
  • 85,615
  • 20
  • 155
  • 190
James
  • 15,085
  • 25
  • 83
  • 120
  • 2
    One of your dependencies might be depending on log4j 1.2.14 transitively. Are you able to specify the log4j dependency directly in your project and force Ivy to download it? – Binil Thomas May 28 '11 at 03:05
  • when ivy says "use verbose or debug level" then it really means it as the errors it produces at normal logging levels are pretty obtuse. – Matt May 28 '11 at 07:33
  • 2
    Binil, that's what fixed it. If I manually add the log4 1.2.14 dependency it works, thanks – James May 29 '11 at 21:38

2 Answers2

3

I saw this recently with a junit dependency and it kind of drove me nuts trying to fix it. In my case I had to remove the "test" scope from the dependency declaration (in this case in SBT with Scala).

Anyway, hope it helps someone.

Janx
  • 3,285
  • 3
  • 19
  • 24
3

Seems that this is related to IVY-987 and should be fixed in ivy 2.1.0-RC1.

Mario
  • 51
  • 3