title: Cucumber cannot be resolved to a type
body: <p>I created a RunTest class to run my test scenarios using Cucumber with JUnit. To run the tests before, I need to import into my project the RunWith class (@RunWith) and pass as parameter the Cucumber.class. Then, the RunWith parameter of the class recognizes more of the parameter that is passed to it, no.
  The eclipse displays the message:</p>
  
  <blockquote>
    <p>Multiple markers at this line
    - Class  can not be resolved to a type.
    - Cucumber can not be resolved to a type.
    - The annotation @RunWith must define the attribute value</p>
  </blockquote>
  
  <p>I'm using Maven to organize my JARS files.
  Following is the code and error screens.</p>
  
  <p><a href="https://i.stack.imgur.com/cBKkB.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/cBKkB.jpg" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/wVsAi.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/wVsAi.jpg" alt="enter image description here"></a></p>
  
  <p>My POM.XML</p>
  
  <blockquote>
    <p></p>
  </blockquote>
  
  <pre><code>    &lt;!-- https://mvnrepository.com/artifact/junit/junit --&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-java&lt;/artifactId&gt;
          &lt;version&gt;1.2.5&lt;/version&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;scope&gt;test&lt;/scope&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;/dependency&gt;
  
      &lt;!-- https://mvnrepository.com/artifact/info.cukes/cucumber-jvm --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;info.cukes&lt;/groupId&gt;
          &lt;artifactId&gt;cucumber-jvm&lt;/artifactId&gt;
          &lt;version&gt;1.2.5&lt;/version&gt;
          &lt;type&gt;pom&lt;/type&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>My Libraries
  <a href="https://i.stack.imgur.com/BpS87.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/BpS87.jpg" alt="enter image description here"></a></p>