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 to use it with Scala 2.8.1 with no hacks. But now it says “object lang is not a member of package org.apache.commons”. Where has org.apache.commons.lang gone?
I want to use org.apache.commons.lang.NotImplementedException as it seems to be the only NotImplementedException implementation
Share
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 containNotImplementedException), so we need Apache Commons 2.6. And what’s inobvious here is that the Maven group id for it is notorg.apache.commons, butcommons-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.