播放框架依赖项:找不到列表

时间:2013-08-12 07:33:01

标签: playframework migrate

我为了播放1.2.5安装了migrate-1.4,我添加了
要求:

  • play - >迁移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

然后我运行“play dependencies”,结果不同。

 *****************************************************************************
 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.

1 个答案:

答案 0 :(得分:0)

看起来你有太多require:。尝试像这样更改dependencies.yml

require:
    - play -> table 1.2.1
    - play -> search 2.0
    - play -> migrate 1.4
    - play -> jersey 0.1

即。应该只有一个require:部分。