How to put a JAR file in a Play 2 project and use it?

拈花ヽ惹草 提交于 2020-01-05 14:52:05

问题


In Play 1, we can put some JAR files into the /lib directory. But there is no such a directory, and I don't find any information to do this.

Play 2 uses repositories, but sometimes I just want a quick and dirty way to use a JAR file. How do I do that?


回答1:


Since Play 2 applications are built using sbt, you can just follow their convention for unmanaged dependencies: put your JAR file in the lib/ directory.



来源:https://stackoverflow.com/questions/9287880/how-to-put-a-jar-file-in-a-play-2-project-and-use-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!