【问题标题】:Error: Could not find or load main class cucumber.cli.Main in Intellij错误:无法在 Intellij 中找到或加载主类 cucumber.cli.Main
【发布时间】:2021-02-12 20:14:55
【问题描述】:

我对 intellij 完全陌生,我正在尝试在 intelliJ 中运行 users.feature,但出现错误“错误:无法找到或加载主类 cucumber.cli.Main”,不知道如何解决。

请参考以下屏幕截图

enter image description here enter image description here

【问题讨论】:

  • 可以分享你的示例项目吗?
  • 您的项目中似乎包含cucumber.cli.Main相关库,请尝试将它们添加到此项目中。

标签: intellij-idea


【解决方案1】:

你可以通过在 pom.xml 中添加适当的依赖来解决这个问题 你会得到依赖 https://mvnrepository.com/artifact/io.cucumber/cucumber-java

【讨论】:

    猜你喜欢
    • 2018-11-24
    • 1970-01-01
    • 2019-04-20
    • 2018-07-21
    • 1970-01-01
    • 2019-12-07
    • 2019-07-16
    • 2015-12-22
    • 2021-12-10
    相关资源
    最近更新 更多