title: Java: package cucumber.api.junit does not exist
body: <p>I've been trying to get this to work. </p>
  
  <p>I would like set up a test runner class <a href="https://cucumber.io/docs/reference/jvm" rel="nofollow noreferrer">like so</a></p>
  
  <p>However I get this error:</p>
  
  <blockquote>
    <p>Error:(3, 26) java: package cucumber.api.junit does not exist<br>
    Error:(10, 10) java: cannot find symbol<br>
    symbol: class Cucumber</p>
  </blockquote>
  
  <p>The class looks like:</p>
  
  <pre><code>package nl.prvgld.sigma.aanvraagtitels.testutil;
  
  import cucumber.api.junit.Cucumber;
  import org.junit.runner.RunWith;
  
  @RunWith(Cucumber.class)
  public class RunFeature {
  }
  </code></pre>
  
  <p>Pom.xml looks like:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
                      &lt;target&gt;1.8&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;nl.prvgld.sigma.aanvraagtitels&lt;/groupId&gt;
    &lt;artifactId&gt;Aanvraagtitels&lt;/artifactId&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;Aanvraagtitels&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
    &lt;dependencies&gt;
        &lt;!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java --&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
            &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
            &lt;version&gt;3.2.0&lt;/version&gt;
        &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;4.12&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/info.cukes/cucumber-java --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;info.cukes&lt;/groupId&gt;
          &lt;artifactId&gt;cucumber-java8&lt;/artifactId&gt;
          &lt;version&gt;1.2.5&lt;/version&gt;
      &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/info.cukes/cucumber-core --&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;info.cukes&lt;/groupId&gt;
            &lt;artifactId&gt;cucumber-core&lt;/artifactId&gt;
            &lt;version&gt;1.2.5&lt;/version&gt;
            &lt;scope&gt;test&lt;/scope&gt;
        &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/info.cukes/cucumber-junit --&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;info.cukes&lt;/groupId&gt;
            &lt;artifactId&gt;cucumber-junit&lt;/artifactId&gt;
            &lt;version&gt;1.2.5&lt;/version&gt;
        &lt;/dependency&gt;
  
        &lt;!-- https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc --&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;com.microsoft.sqlserver&lt;/groupId&gt;
            &lt;artifactId&gt;mssql-jdbc&lt;/artifactId&gt;
            &lt;version&gt;6.1.0.jre8&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;com.smartbear.readyapi.testserver.cucumber&lt;/groupId&gt;
            &lt;artifactId&gt;testserver-cucumber-core&lt;/artifactId&gt;
            &lt;version&gt;1.0.0&lt;/version&gt;
            &lt;scope&gt;test&lt;/scope&gt;
        &lt;/dependency&gt;
  
  
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>All classes are somewhere under the Test folder.
  I've been lookin at some related questions here and tried the solutions like removing test from Pom, and making sure I have junit, cucumber-junit, cucumber-java8 and cucumber-core in the Pom. </p>
  
  <p>I am using Intellij.</p>
  
  <p>Any help in the right direction is highly appreciated!</p>
  
  <p>Cheers!</p>