Reputation: 747
Play! framework comes with tons of jar libraries. I am using version 1.7 of apache commons-codec for my Play! application. But Play! is already shipped with version 1.4 and some other older versions. I have placed my commons-codec-1.7.jar in the lib folder, and 'eclipsified' so the jar file is in the class path. But when I expand the Project Explorer in Eclipse I see that both version 1.7 and 1.4 are referenced by the application. My questions are
BTW, I am using Play! 2.0.4
Upvotes: 1
Views: 629
Reputation: 48065
Add commons-codec
to your Build.scala
and you'll be fine. The dependencies will be correct since the specified dependency will override the ones that are default.
val appDependencies = Seq(
"commons-codec" % "commons-codec" % "1.7"
)
play compile
will do it. And you'll have to eclipsify the project again.Don't forget to remove the commons-codec
from the lib
folder. As said it will be downloaded and put in the classpath automatically.
Upvotes: 1