问题
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