[英]importing astyanax library in play framework
I have a problem in including external jar files to play framework. 我在包含外部jar文件以播放框架时遇到问题。 I'm trying to include Astyanax to play framework.
我试图包括Astyanax来玩框架。 There are multiple jar files in astyanax after running
./gradlew build
运行
./gradlew build
之后,在astyanax中有多个jar文件
I made a /lib
folder in the project folder. 我在项目文件夹中创建了一个
/lib
文件夹。
Which jar files should I put in the github repo after using ./gradlew build
? 使用
./gradlew build
后,应将哪些jar文件放入github存储库中?
Note : I also downloaded astyanax.jar
file from maven central. 注意:我还从Maven
astyanax.jar
下载了astyanax.jar
文件。 I copyied the .jar file but it still shows errors. 我复制了.jar文件,但仍然显示错误。
Note : I also tried play eclipse
command. 注意:我也尝试过
play eclipse
命令。 Nothing changed. 没有改变。
Note : I can't use eclipse to add external .jar files. 注意:我不能使用eclipse添加外部.jar文件。 I need to do it on virtual linux server.
我需要在虚拟linux服务器上执行此操作。
Thanks 谢谢
To include an external library, you can just add a line to your project/Build.scala
. 要包括外部库,您只需在
project/Build.scala
添加一行即可 。
In your case, that would look like this: 您的情况如下所示:
val appDependencies = Seq(
libraryDependencies += "com.netflix.astyanax" % "astyanax" % "0.8.9"
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.