在黄瓜 java 8 中运行功能文件时,我遇到了以下问题
cucumber.runtime.CucumberException:无法加载插件类:com.cucumber.listener.ExtentCucumberFormatter。它没有在 cucumber.runtime.formatter 的 cucumber.runtime.formatter.PluginFactory.pluginClass(PluginFactory.java:166) 的 cucumber.runtime.formatter.PluginFactory.loadClass(PluginFactory.java:179) 实现 cucumber.api.Plugin。 PluginFactory.getPluginClass(PluginFactory.java:223) 在 cucumber.runtime.formatter.PluginFactory.isFormatterName(PluginFactory.java:201) 在 cucumber.runtime.RuntimeOptionsFactory.addPlugins(RuntimeOptionsFactory.java:89) 在 cucumber.runtime.RuntimeOptionsFactory.buildArgsFromOptions (RuntimeOptionsFactory.java:37) 在 cucumber.runtime.RuntimeOptionsFactory.create(RuntimeOptionsFactory.java:24) 在 cucumber.api.junit.Cucumber.(Cucumber.java:
请在下面找到我的 POM 文件
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java8</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>3.0.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-testng</artifactId>
<version>${cucumber.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>21.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.8.0</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.12.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>3.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.vimalselvam</groupId>
<artifactId>cucumber-extentsreport</artifactId>
<version>3.0.0</version>
</dependency>
谁能帮我解决这个问题?我无法继续。