简体   繁体   中英

How to set up a Intellij run-configuration for a Vert.x 3.2.x project with gradle?

I know there has been questions about this topic earlier, but I thought I'd 'ask' one more time as I could not get my run configuration to work from what I read...

What was obvious from the earlier postings here on Stack Overflow was that you should use the following:

  • Main class: io.vertx.core.Launcher
  • Program arguments: run

My problem was that I got this warning when setting up a run configuration:

Intellij运行配置对话框中的警告

When trying to set up a similar project using Maven everything was working flawlessly.

The problem was that Intellij specifies 3 modules when creating a Gradle based project.

Gradle项目结构,模块

The trick is to pick the right module in the 'Run/Debug Configuration', 'Use classpath of module' field . I originally selected the base module ('ldaptest') where I should have selected the 'main' module.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM