首页 > 解决方案 > 线程“主” cucumber.runtime.CucumberException 中的异常:无法识别的插件:org.jetbrains.plugins.cucumber.java.run.CucumberJvm3SMFormatter

问题描述

从 intellij 运行黄瓜功能/场景时出错。我安装了最新版本的 java 插件黄瓜 (v183.4284.148)

 Exception in thread "main" cucumber.runtime.CucumberException: Unrecognized plugin: org.jetbrains.plugins.cucumber.java.run.CucumberJvm3SMFormatter
at cucumber.runtime.RuntimeOptions.addPluginName(RuntimeOptions.java:171)
at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:122)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:84)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:77)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:69)
at cucumber.api.cli.Main.run(Main.java:31)
at cucumber.api.cli.Main.main(Main.java:18)

进程以退出代码 1 结束

以下是我在 build.gradle 中的依赖项

dependencies {
compile group: 'org.glassfish.jersey.core', name: 'jersey-client', version: '2.27'
compile group: 'org.glassfish', name: 'javax.json', version: '1.1.2'
compile group: 'org.glassfish.jersey.inject', name: 'jersey-hk2', version: '2.27'
compile group: 'com.jayway.jsonpath', name: 'json-path-assert', version: '2.4.0'
compile group: 'com.google.guava', name: 'guava', version: '25.0-jre'
compile group: 'io.cucumber', name: 'cucumber-java8', version: '4.2.0'
compile group: 'io.cucumber', name: 'cucumber-junit', version: '4.2.0'
compile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
compile group: 'uk.sponte.automation', name: 'selenium-pom', version: '3.0.12'
compile group: 'org.reflections', name: 'reflections', version: '0.9.11'
compile group: 'io.cucumber', name: 'cucumber-picocontainer', version: '4.2.0'
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.25'
compile group: 'org.mongodb', name: 'mongo-java-driver', version: '3.6.3'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.+'
testCompile group: 'org.awaitility', name: 'awaitility', version: '3.1.2'

}

这在 2018 年 12 月 20 日之前运行良好。尝试重新安装 intellij,为 java 插件重新安装 cucumber,使用不同版本的 cucumber-java8 和 cucumber-junit,没有任何帮助

标签: intellij-ideacucumber-java

解决方案


推荐阅读