【问题标题】:Cant run vertx module for eclipse project on windows 7无法在 Windows 7 上为 Eclipse 项目运行 vertx 模块
【发布时间】:2014-08-06 11:11:30
【问题描述】:

我无法在 Windows 7 上为 Eclipse 项目运行 vertx 模块

我已按照此处的说明进行操作:http://vertx.io/gradle_dev.html

  1. 下载模板https://github.com/vert-x/vertx-gradle-template
  2. 运行测试

    cd vertx-gradle-template-master

    gradlew.bat test

    BUILD SUCCESSFUL

  3. 设置 ide

    gradlew.bat eclipse

    BUILD SUCCESSFUL

  4. 正在尝试运行模块

    gradlew.bat runMod

我知道了:

:collectDeps UP-TO-DATE
:runMod
Module directory build\mods\com.mycompany~my-module~1.0.0-final already exists. Creating properties on demand (a.k.a. dynamic properties) has been deprecated and is scheduled to be removed in Gradle 2.0. Please read http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html for information
on the replacement for dynamic properties.
Deprecated dynamic property: "args" on "task ':runMod'", value: "[runmod, com.mycompany...".

Building 50% > :runMod

我该怎么办?我不明白。

【问题讨论】:

    标签: java eclipse gradle vert.x


    【解决方案1】:

    实际上,一切正常!

    开发指南 [0] 提供了您需要的额外信息。据它说,Gradle 会从程序中吞下 INFO 级别的消息。如果您使用“-i”再次执行此操作,那么您将看到缺少的输出实际上表明事情正在按预期工作。

    这是我在运行./gradlew runmod -i 时看到的内容(注意大小写无关紧要,这与使用“runMod”的工作方式相同),您可以在其中看到来自 PingVerticle 类的日志消息,表明它正在等待 ping 消息:

    ...Same output as from the question...
    PingVerticle started
    Succeeded in deploying module
    > Building 50% > :runMod
    

    不幸的是,文档非常缺乏,PingVerticle 将无限期地坐在那里,直到您自己真正发送 ping 消息。

    [0]http://vertx.io/dev_guide.html

    【讨论】:

      猜你喜欢
      • 2013-07-09
      • 2015-01-06
      • 1970-01-01
      • 2012-07-05
      • 2011-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-06
      相关资源
      最近更新 更多