Friday, 19 July 2013

[Solved] sbt.ResolveException: download failed: org.slf4j#slf4j-api;1.6.6!slf4j-api.jar

So, I was working on Scala with Play Framework for some time now. I have to compile the source code provided by the client from time to time and I have faced this issue nearly everytime whenever I use a new developer machine.

When I run the "play clean", "play update", "play compile" or the "play run" command on the provided project, I get the error as sbt.ResolveException: download failed: org.slf4j#slf4j-api;1.6.6!slf4j-api.jar.

Below is a screenshot of this error message:



I tried a bunch of ways to solve this issue, but only one method seems to work.

The first thing you need to do is edit the /project/plugins.sbt file and add the latest version of sbt-plugin in the addSbtPlugin section.

Now, delete the ivy directory present at ~/.ivy2
Then, go ahead and delete the below mentioned files:

  • <path to Play Framework home directory>/.sbt.ivy.lock
  • <path to Play Framework home directory>/cache/org.slf4j
  • <path to Play Framework home directory>/local/org.slf4j
Then, run the same play command which you ran earlier.
As shown in the below screenshots, this time the command ran successfully without any sort of error.



References:




10 comments:

  1. Awesome, thank you for posting this.

    ReplyDelete
  2. Thank you! These sort of things are really hurting the broad acceptance of Play. :(

    ReplyDelete
  3. THE SBT IS SUCH a SICK BASTARD , those who created it are MOTHER FUCKERS

    ReplyDelete
  4. nice your site thanks for sharing love you all team good work keep it up
    cheque printer | inventory management software dubai

    ReplyDelete
  5. I am very happy to read this. Appreciate your sharing
    Signature:
    Jugar juego de frozen en línea gratis, los nuevos de princesa de Disney juegos frozen - la princesa encantadora y linda. Divertirse frozen!

    ReplyDelete
  6. Posts shared useful information and meaningful life, I'm glad to be reading this article and hope to soon learn the next article. thank you
    Signature:
    download descargar facebook gratis para Android celular and download free descargar facebook apk en español, descargar facebook plus , descarga facebook

    ReplyDelete
  7. When you're tired, you want to relax after a stressful working hours, you need to have time to take care of the kids active.
    Please visit our website and play exciting flash games.
    Thanks you for sharing!
    Friv 4

    ReplyDelete
  8. Rolex Watches Authentic Mens & Ladies Rolex Datejust, President Watches for Sale at JavyEstrella.com.

    ReplyDelete
  9. dumpster rental alexandria Galaxy Transfer is based in Northern Virginia and is a division of EnviroSolutions, Inc. GT was purchased by EnviroSolutions, Inc. in June 2013.

    ReplyDelete
  10. The elimination of this error is possible by the following simple steps. The users can use this information Cheap Custom Essays when working with the device.

    ReplyDelete