title: @RunWith(Cucumber.class) error. The import cucumber.api.junit.Cucumber; cannot be resolved
body: <p>I am having this issue on all the cucumber runner files. Using the following dependencies in <code>pom.xml</code>. Any help will be appreciated. </p>
  
  <p>I tried a clean and force update the project and restarted the IDE, 
  deleted repository folder in <code>.M2</code> and then clean and force update the projects but it is still not working.</p>
  
  <pre><code>&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;/dependency&gt;
  
  &lt;!-- https://mvnrepository.com/artifact/info.cukes/cucumber-html --&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;info.cukes&lt;/groupId&gt;
  &lt;artifactId&gt;cucumber-html&lt;/artifactId&gt;
  &lt;version&gt;0.2.3&lt;/version&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-java&lt;/artifactId&gt;
  &lt;version&gt;1.2.5&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;!-- https://mvnrepository.com/artifact/info.cukes/cucumber-jvm-deps --&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;info.cukes&lt;/groupId&gt;
  &lt;artifactId&gt;cucumber-jvm-deps&lt;/artifactId&gt;
  &lt;version&gt;1.0.5&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;!-- https://mvnrepository.com/artifact/info.cukes/gherkin --&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;info.cukes&lt;/groupId&gt;
  &lt;artifactId&gt;gherkin&lt;/artifactId&gt;
  &lt;version&gt;2.12.2&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;!-- https://mvnrepository.com/artifact/org.hamcrest/hamcrest-all --&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;org.hamcrest&lt;/groupId&gt;
  &lt;artifactId&gt;hamcrest-all&lt;/artifactId&gt;
  &lt;version&gt;1.3&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;!-- https://mvnrepository.com/artifact/info.cukes/cucumber-picocontainer --&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;info.cukes&lt;/groupId&gt;
  &lt;artifactId&gt;cucumber-picocontainer&lt;/artifactId&gt;
  &lt;version&gt;1.2.5&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;!-- https://mvnrepository.com/artifact/info.cukes/cucumber-testng --&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;info.cukes&lt;/groupId&gt;
  &lt;artifactId&gt;cucumber-testng&lt;/artifactId&gt;
  &lt;version&gt;1.2.5&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;!-- Extent Reports --&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;com.aventstack&lt;/groupId&gt;
  &lt;artifactId&gt;extentreports&lt;/artifactId&gt;
  &lt;version&gt;3.0.5&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;!-- https://mvnrepository.com/artifact/org.freemarker/freemarker --&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;org.freemarker&lt;/groupId&gt;
  &lt;artifactId&gt;freemarker&lt;/artifactId&gt;
  &lt;version&gt;2.3.26-incubating&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;!-- https://mvnrepository.com/artifact/net.masterthought/cucumber-reporting --&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;net.masterthought&lt;/groupId&gt;
  &lt;artifactId&gt;cucumber-reporting&lt;/artifactId&gt;
  &lt;version&gt;3.6.0&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;com.vimalselvam&lt;/groupId&gt;
  &lt;artifactId&gt;cucumber-extentsreport&lt;/artifactId&gt;
  &lt;version&gt;2.0.4&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>