Take the 2-minute tour ×

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?

share|improve this question
@matt-ball, yes, I do. Found it. Will answer myself so that others could see the answer may they meet the same problem. –  Ivan Oct 12 '11 at 19:59

1 Answer 1

up vote 9 down vote accepted

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.

share|improve this answer

Your Answer


