title: Test Runner file - Hover over error does not prompt user to import api
body: <p>I created a New Maven project in Eclipse and then created a new &quot;Feature file&quot;, &quot;Step Definition&quot; &amp; &quot;Testrunner&quot;. However I see quite a few error messages when I hover over the different annotations on the Test Runner class. See below {1 to 5}</p>
  <p>I did a lot of research over the internet and added a few dependencies in the pom.xml file but nothing seem to work.</p>
  <p>I currently have the following dependencies in my pom.xml file</p>
  
  <pre><code>&lt;dependency&gt;
  
    &lt;groupId&gt;junit&lt;/groupId&gt;
  
    &lt;artifactId&gt;junit&lt;/artifactId&gt;
  
    &lt;version&gt;3.8.1&lt;/version&gt;
  
    &lt;scope&gt;test&lt;/scope&gt;
  
  &lt;/dependency&gt;
  
  &lt;!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-java --&gt;
  </code></pre>
  
  <pre><code>&lt;groupId&gt;io.cucumber&lt;/groupId&gt;
  
  &lt;artifactId&gt;cucumber-java&lt;/artifactId&gt;
  
  &lt;version&gt;6.8.2&lt;/version&gt;
  </code></pre>
    
  <pre><code>&lt;!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-junit --&gt;
  </code></pre>
    
  <pre><code>&lt;groupId&gt;io.cucumber&lt;/groupId&gt;
  
  &lt;artifactId&gt;cucumber-junit&lt;/artifactId&gt;
  
  &lt;version&gt;6.8.2&lt;/version&gt;
  
  &lt;scope&gt;test&lt;/scope&gt;
  </code></pre>
    
  <ol>
  <li>When I hover my mouse over Cucumber I get the following message</li>
  </ol>
  <ul>
  <li>Cucumber cannot be resolved to a variable</li>
  </ul>
  <ol start="2">
  <li>When I hover my mouse over @RunWith I get the following</li>
  </ol>
  <ul>
  <li>RunWith cannot be resolved to a type</li>
  </ul>
  <ol start="3">
  <li>When I hover my mouse over @CucumberOptions I get the following</li>
  </ol>
  <ul>
  <li>CucumberOptions cannot be resolved to a type</li>
  </ul>
  <ol start="4">
  <li>When I hover my mouse over import cucumber.api.junit.Cucumber; I get the following</li>
  </ol>
  <ul>
  <li>The import cucumber.api.junit cannot be resolved</li>
  </ul>
  <ol start="5">
  <li>When I hover my mouse over import cucumber.api.CucumberOptions; I get the following</li>
  </ol>
  <ul>
  <li>The import cucumber.api.CucumberOptions cannot be resolved</li>
  </ul>
  <p>Seems like its got to do something with the jre file. Here are the solutions i have tried based on responses I could find in stackoverflow
  A] Some solutions over the internet suggested that I add the following dependency to the pom.xml file, but it did not resolve the issue</p>
  
  
  <pre><code>&lt;groupId&gt;info.cukes&lt;/groupId&gt;
  
  &lt;artifactId&gt;cucumber-junit&lt;/artifactId&gt;
  
  &lt;version&gt;1.2.6&lt;/version&gt;
  
  &lt;type&gt;pom&lt;/type&gt;
  
  &lt;scope&gt;test&lt;/scope&gt;
  </code></pre>
  
  <p>NOTE:- Even after adding these to the pom.xml file i do not see it under Maven Dependencies list.</p>
  <p>B] added import cucumber.junit.Cucumber;</p>
  <p>but even this did not help</p>
  <p>C] Commented out @RunWith(Cucumber, class) and added the following dependency to the pom.xml file</p>
  
  
  <pre><code>&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;type&gt;pom&lt;/type&gt;
  
  &lt;scope&gt;test&lt;/scope&gt;
  </code></pre>
  
  <p>NOTE:- The error message against &quot;import cucumber.api.CucumberOptions;&quot; disappeared but error message against &quot;import cucumber.api.junit.Cucumber;&quot; still shows.</p>
  <p>Regards,
  Rohit</p>