无法解析符号" CucumberOptions"在IntelliJ中

时间:2016-12-04 05:52:45

标签: intellij-idea cucumber cucumber-jvm

我看到"无法解析CucumberOptions" IntelliJ中的错误,即使在添加" cucumber-java"和" cucumber-junit"到我的pom.xml

enter image description here

1 个答案:

答案 0 :(得分:3)

花了很多时间后,我发现了pom.xml中的依赖问题

你需要添加" cucumber-core"除了" cucumber-java"和" cucumber-junit"

    <!-- https://mvnrepository.com/artifact/info.cukes/cucumber-core -->
    <dependency>
        <groupId>info.cukes</groupId>
        <artifactId>cucumber-core</artifactId>
        <version>1.2.5</version>
    </dependency>