【问题标题】:play framework dependecies播放框架依赖
【发布时间】:2012-10-29 18:49:31
【问题描述】:

我在执行“播放依赖项”时经常遇到错误。

我正在使用 play 1.2.2 和 morphia 1.2.3d 它能够解决 morphia 依赖,但抛出错误。

~
~ *****************************************************************************
~ WARNING: These dependencies are missing, your application may not work properl
y (use --verbose for details),
~
~       play->play 1.2
~ *****************************************************************************
~
~ Some dependencies are still missing.
~

当我将 'play->play 1.2' 行添加到 conf/dependencies.yml 文件时,它显示另一个错误:

 ---------------------------------------------------------------------

:: problems summary ::
:::: WARNINGS
            module not found: play#play;1.2

    ==== playCore: tried

      E:\My_Pro\play_framewrk\play-1.2.2/framework/dependencies.yml

            ::::::::::::::::::::::::::::::::::::::::::::::

            ::          UNRESOLVED DEPENDENCIES         ::

            ::::::::::::::::::::::::::::::::::::::::::::::

            :: play#play;1.2: not found

            ::::::::::::::::::::::::::::::::::::::::::::::


:::: ERRORS
            playCore: unacceptable revision => was=1.2.2 required=1.2

这是否意味着,更高版本的 PLAY 不向下兼容?

【问题讨论】:

  • 你能添加你的依赖文件的内容吗?

标签: playframework


【解决方案1】:

不要指定使用哪个版本的游戏:

你的 dependencies.yml :

# Application dependencies

require:
    - play
    - morphia 1.2.3d

【讨论】:

    【解决方案2】:

    与几乎所有应用程序一样,Play 对其版本号使用语义版本控制语法。查看SemVer website 了解更多信息。

    所以从 1.2 升级到 1.2.2 应该没有危险。它只是显示一条消息,说明该模块已针对 1.2 版进行了明确测试,并且没有以上版本。含义问题可能出现。

    【讨论】:

      【解决方案3】:

      http://www.playframework.org/modules/morphia-1.2.5a/start 给出这个:

      require:
          - play -> morphia [1.2.4,)
      

      我不知道这个古怪的语法是做什么的,除了它有效。

      我希望在某个地方能解释一下 dependencies.yml 文件的语法。我发现当我只使用没有[,) 的 1.2.4 时,它不起作用。

      【讨论】:

        猜你喜欢
        • 2015-07-18
        • 2015-04-19
        • 2016-02-29
        • 2016-07-25
        • 1970-01-01
        • 1970-01-01
        • 2013-09-14
        • 1970-01-01
        • 2014-04-03
        相关资源
        最近更新 更多