title: Eclipse error cannot be resolved to a type
body: <p>I am trying to learn Cucumber using Maven + Eclipse. When trying to import the following I am getting the error respectively</p>
  
  <pre><code>import cucumber.org.junit.runner.RunWith;
  import cucumber.api.junit.CucumberOptions;
  
  CucumberOptions cannot be resolved to a type
  RunWith cannot be resolved to a type
  </code></pre>
  
  <p>I have search through and read possible ways to resolved this but nothing worked for me. </p>
  
  <p>POM Details:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;io.cucumber&lt;/groupId&gt;
      &lt;artifactId&gt;cucumber-junit&lt;/artifactId&gt;
      &lt;version&gt;4.2.0&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-java --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;io.cucumber&lt;/groupId&gt;
      &lt;artifactId&gt;cucumber-java&lt;/artifactId&gt;
      &lt;version&gt;4.2.0&lt;/version&gt;
  &lt;/dependency&gt;
  
  Version of Java/Exclipse/Maven
  Eclipse IDE for Java Developers - Version: 2018-09 (4.9.0)
  JAVA 11.0.1
  Maven 3.6.0 
  </code></pre>
  
  <p>Not sure what I am doing wrong if someone could help please.</p>