Why can't Scala find org.apache.commons.lang package?

前端 未结 1 811
没有蜡笔的小新
没有蜡笔的小新 2021-01-17 16:40

I want to use org.apache.commons.lang.NotImplementedException as it seems to be the only NotImplementedException implementation in Java/Scala domain. I can remember I used t

相关标签:
1条回答
  • 2021-01-17 16:46

    I've just found the answer myself. The problem is Apache Commons 3 no longer include lang (including lang3 instead, which is differend and doesn't contain NotImplementedException), so we need Apache Commons 2.6. And what's inobvious here is that the Maven group id for it is not org.apache.commons, but commons-lang - the same as its artifact id.

    So I had to add "commons-lang" % "commons-lang" % "2.6" dependency and do sbt update to make it work.

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