Adding Apache common dependency to Play Framework 2.0

前端 未结 1 1969
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 13:22

i want to import org.apache.commons.io but i\'m getting this error:

[info] Compiling 1 Java source to /home/ghost/Bureau/app/play-2.0.1/waf/target/scala-2.9.1/c         


        
1条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-04 14:08

    To add the dependencies

    1. Edit project Build.scala file : /project/Build.scala and add dependency for commons-io

      val appDependencies = Seq(
         // Add your project dependencies here,
        "commons-io" % "commons-io" % "2.4"
      )
      
    2. using play console check dependency resolved or not use command: play dependencies

    Tip: If you're not familiar with SBT syntax mvnrepository.com allows you to copy proper one in SBT tab: commons-io sample

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