且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Play !:使用不同版本的jar而不是本地存储库

更新时间:2023-01-10 10:30:27

commons-codec 添加到 Build.scala 你会没事的。依赖关系是正确的,因为指定的依赖关系将覆盖默认的依赖关系。

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"
)




  1. 您不必删除版本1.4。版本1.7现在将生效。

  2. 这是由它们在类路径中显示的顺序引起的。

  3. play编译会做到这一点。并且你必须再次使项目重新开始。

  1. You don't have to remove version 1.4. Version 1.7 will be in effect now.
  2. That is caused by the order they are presented in the classpath.
  3. play compile will do it. And you'll have to eclipsify the project again.

不要忘记删除 commons-codec来自 lib 文件夹的。如上所述,它将被自动下载并放入类路径中。

Don't forget to remove the commons-codec from the lib folder. As said it will be downloaded and put in the classpath automatically.