title: Cucumber cannot be resolved to a type. @RunWith(Cucumber.class)
body: <p>I am trying to execute as a maven project, I have added the dependencies in pom file and in maven dependencies also I can find the cucumber-junit jars. But still I cannot import the appropriate jar. Getting <code>" The import cucumber.api.junit cannot be resolved "</code>. Please find the attached screenshot</p>
  
  <p>Dependency added in maven is</p>
  
  <pre><code>&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;scope&gt;test&lt;/scope&gt;
   &lt;/dependency&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/0mizd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0mizd.png" alt="enter image description here"></a></p>
  
  <p>Folder structure of TestRunner Class</p>
  
  <p><a href="https://i.stack.imgur.com/6m1Uf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6m1Uf.png" alt="enter image description here"></a></p>