我为 play 1.2.5 安装了 migrate-1.4 并添加了
require:
- 玩 -> 迁移 1.4
在dependencies.yml
.
之后,我运行播放依赖项,它告诉您:
Oops, malformed dependencies.yml descriptor:
~
~ require list not found -> {require=play -> migrate 1.4}
~
Exception in thread "main" java.text.ParseException: Malformed dependencies.yml descriptor
at play.deps.YamlParser.parseDescriptor(YamlParser.java:204)
at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser.parseDescriptor(AbstractModuleDescriptorParser.java:48)
at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:185)
at play.deps.DependenciesManager.resolve(DependenciesManager.java:341)
at play.deps.DependenciesManager.main(DependenciesManager.java:39)
谁能告诉我为什么?
非常感谢!
我犯了一个愚蠢的错误!我实际上在 PLAY_HOME/framework/dependencies.yml 中添加了这些,它应该是我应用程序的 conf 文件夹中的那个。添加依赖后,dependencies.yml 是这样的:
# Application dependencies
require:
- play -> table 1.2.1
- play -> migrate 1.4
- play -> search 2.0
- play -> jersey 0.1
然后我运行“播放依赖项”,结果不同。
*****************************************************************************
WARNING: These dependencies are missing, your application may not work properly (use --verbose for details),
play->jersey 0.1
play->migrate 1.4
play->table 1.2.1
play->search 2.0
*****************************************************************************
Some dependencies are still missing.