如何使用gradle为Vert.x 3.2.x项目设置Intellij运行配置?

时间:2016-03-25 09:14:52

标签: java intellij-idea vert.x

我知道之前有关于这个话题的问题,但我想我会问'再一次,因为我无法让我的运行配置从我读到的内容开始......

在Stack Overflow上的早期帖子中显而易见的是你应该使用以下内容:

  • 主要课程: io.vertx.core.Launcher
  • 计划参数:运行

我的问题是我在设置运行配置时收到此警告:

Warning in the Intellij run configuration dialog box

当尝试使用Maven设置一个类似的项目时,一切都运行得很完美。

1 个答案:

答案 0 :(得分:1)

问题是Intellij在创建基于Gradle的项目时指定了3个模块。

Gradle project structure, Modules

诀窍是在'运行/调试配置'中选择正确的模块,'使用模块的类路径'场。我最初选择了基本模块(' ldaptest'),我应该选择' main'模块。

enter image description here