如何在Play中指定本地jar文件作为依赖关系?框架1.x [英] How can I specify a local jar file as a dependency in Play! Framework 1.x
问题描述
我想运行play deps --sync,没有这个jar被删除..
我已经看过文件文件,但无法弄清楚如何做到这一点
任何想法?
- 编辑
我刚刚找到答案: http://groups.google.com/group/play-framework/browse_thread/thread/b54e4e25ae49161b
在这个问题之前,请稍后再点一下google。
可以通过以下依赖关系来实现:
for library /jar/DateHelper-1.0.jar
require:
- pl ay - > crud
- 提供 - > DateHelper 1.0
存储库:
- 提供:
类型:local
工件:$ {application.path} / jar / [module] - [revision] .jar
包含:
- 提供 - > *
(您需要创建jar目录并将jar文件放在其中)
所以,根据$ {xxxx},似乎dependecies.yml文件被处理像一个模板...就像发生在路由文件
I have a jar file copied in the lib directory
I'd like to run "play deps --sync" without this jar being deleted..
I've already looked at depency file documentation but couldn't figure out how to do it
any idea?
-- edit
I've just found the answer: http://groups.google.com/group/play-framework/browse_thread/thread/b54e4e25ae49161b
Gonna google around a bit more before asking here
just like the answer in google groups said, I could achieve it with the following dependencies.yml file
for library /jar/DateHelper-1.0.jar
require:
- play -> crud
- provided -> DateHelper 1.0
repositories:
- provided:
type: local
artifact: "${application.path}/jar/[module]-[revision].jar"
contains:
- provided -> *
(You need to create the jar dir and put your jar files in it)
so, according to the ${xxxx} it seems like dependecies.yml file is processed like a template... just like happens with the routes file
这篇关于如何在Play中指定本地jar文件作为依赖关系?框架1.x的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!