我在迁移到Play 1.2时有点迷路。我们在我们的应用程序中有一套自定义 模块。在播放1.1.1我们用这样的结构:Play Framework 1.2:如何添加自定义模块依赖关系
/root/
/module1
/module2
...
/moduleN
/main app
而且application.conf引用的模块,为相对路径(../ 模块1)
我如何可以做同样的游戏1.2 ?我看到我应该使用 dependencies.yml文件,但在 官方文档中找不到关于此主题的任何信息。
在此先感谢
编辑: 有很多在谷歌集团的混合信息,但this post解决的问题。
我在这里把它复制到为人们提供了在SO搜索这个问题将来参考:
好,利用主,这里需要dependencies.yml 与评论内嵌最新:
# Application dependencies
# Notes:
# play is an alias for play -> play $currentVersion
# play -> crud is an alias for play -> crud $currentVersion
# play -> secure is an alias for play -> secure $currentVersion
# Modules from the main repository use 'play' as organisation
#
require:
- play
- play -> crud
- play -> secure
- play -> recaptcha 1.02
- play -> greenscript 1.2b
- crionics -> cms 1.0
- ugot -> widgets 1.0
- org.markdownj -> markdownj 0.3.0-1.0.2b4
repositories:
- Scala Tools:
type: iBiblio
root: http://scala-tools.org/repo-releases/
contains:
- org.markdownj
- My modules:
type: local
artifact: /somewhere/on/your/disk/[organisation]/[module]-[revision]
# This folder must contain
# /somewhere/on/your/disk/crionics/cms-1.0
# /somewhere/on/your/disk/ugot/widgets-1.0
contains:
- ugot
- crionics
注意:请注意,如果您在本地存储库设置上做了错误操作,那么运行时可能会删除您的项目(完全是!)play deps。是的,它发生在我身上:(
它不适用于我。当从工件路径'/ path/to/repos/[]需要'mystuff - > users 1.0'时,我得到'mystuff-> mystuff - >'包含'/ path/to/repos/mystuff/users-1.0'的组织]/[module] - [revision]' – 2011-06-28 04:26:29
@Yanick我建议您在此添加一个新问题,将您的依赖文件的内容附加到问题 – 2011-06-28 08:59:34
检查这个答案http://stackoverflow.com/a/35773136/1023151 – mosid 2016-03-03 13:12:07