How to fix this “sbt.ResolveException: unresolved dependency: commons-logging#commons-logging;1.1.1:” exception?

前端 未结 4 1567
既然无缘
既然无缘 2021-02-04 05:39

I just clone the project scala-js-react, and run sbt, it reports some error about dependency.

I tried to fix it by add some resolvers, but no lucky.

相关标签:
4条回答
  • 2021-02-04 06:00

    I fell into the exactly same problem of commons-collections:commons-collections:3.2.1. Thanks to Freewind, I just delete ivy-3.2.1.xml and ivydata-3.2.1.properties and it works correctly.

    I believe, at least in my case, these metadata files are corrupted but have no evidence to prove.

    0 讨论(0)
  • 2021-02-04 06:09

    I had to add a line to the Build.scala file, .settings(resolvers += "Guardian Github io repos" at "https://guardian.github.io/maven/repo-releases/")

    Looks like there was a change from http to https and from .com to .io

    0 讨论(0)
  • 2021-02-04 06:13

    Just deleted the commons-logging from local ~/.ivy2/cache, and re-run it.

    PS: I don't know why it can fix it :(

    0 讨论(0)
  • 2021-02-04 06:13

    maybe it is late but I had the same problem and above answers did not fix it What I did : in project folder edit build.properties and changed sbt.version from 0.13.5 to 0.13.6

    #Activator-generated Properties
    #Tue Sep 09 12:46:06 CEST 2014
    template.uuid=5f91b045-ad7c-4a08-b31e-3f5ea4bacb81
    sbt.version=0.13.6
    

    => it now goes to https://rep1.maven... instead of http) so it could update the missing libs and ivy2

    0 讨论(0)
提交回复
热议问题