title: I am getting this error while running my runner class for Cucumber project. Error : java.lang.TypeNotPresentException: Type Cucumber not present
body: <p>i have been trying to solve this issue for more than 3 days now, but did not find any luck, i am getting this error saying java.lang.TypeNotPresentException: Type Cucumber not present,  i have changed version of my dependencies and tried consistent version of all cucumber dependencies, can anyone please help me on this issue?
  Here is my runner file:
  package Runner;</p>
  <pre><code>        import org.junit.runner.RunWith;
          
          enter code here
          
          import cucumber.api.CucumberOptions;
          import cucumber.api.junit.Cucumber;
          
          @RunWith(Cucumber.class)
          @CucumberOptions(
                  features=&quot;features&quot;
                  .glue= {&quot;stepDefinition&quot;}
                  )
          public class TestRunner {
          
          }
          ```
  </code></pre>
  <p>Here is my POM
  </p>
  <pre><code>        &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;
              xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
              xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
              &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
          
              &lt;groupId&gt;Freecrm.com&lt;/groupId&gt;
              &lt;artifactId&gt;Freecrm.com&lt;/artifactId&gt;
              &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          
              &lt;name&gt;Freecrm.com&lt;/name&gt;
              &lt;!-- FIXME change it to the project's website --&gt;
              &lt;url&gt;http://www.example.com&lt;/url&gt;
          
              &lt;properties&gt;
                  &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
                  &lt;maven.compiler.source&gt;1.7&lt;/maven.compiler.source&gt;
                  &lt;maven.compiler.target&gt;1.7&lt;/maven.compiler.target&gt;
              &lt;/properties&gt;
          
              &lt;dependencies&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.6&lt;/version&gt;
                      &lt;type&gt;pom&lt;/type&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.6&lt;/version&gt;
                      &lt;type&gt;pom&lt;/type&gt;
                  &lt;/dependency&gt;
          
                  &lt;!-- https://mvnrepository.com/artifact/info.cukes/cucumber-junit --&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.6&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&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.6&lt;/version&gt;
                      &lt;type&gt;pom&lt;/type&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;1.0.0&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;scope&gt;provided&lt;/scope&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;scope&gt;provided&lt;/scope&gt;
                  &lt;/dependency&gt;
          
                  &lt;!-- https://mvnrepository.com/artifact/junit/junit --&gt;
                  &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;3.8.1&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
          
          
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
                      &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
                      &lt;version&gt;3.141.59&lt;/version&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          
              &lt;build&gt;
                  &lt;pluginManagement&gt;&lt;!-- lock down plugins versions to avoid using Maven 
                          defaults (may be moved to parent pom) --&gt;
                      &lt;plugins&gt;
                          &lt;!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle --&gt;
                          &lt;plugin&gt;
                              &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
                              &lt;version&gt;3.1.0&lt;/version&gt;
                          &lt;/plugin&gt;
                          &lt;!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --&gt;
                          &lt;plugin&gt;
                              &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
                              &lt;version&gt;3.0.2&lt;/version&gt;
                          &lt;/plugin&gt;
                          &lt;plugin&gt;
                              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                              &lt;version&gt;3.8.0&lt;/version&gt;
                          &lt;/plugin&gt;
                          &lt;plugin&gt;
                              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                              &lt;version&gt;2.22.1&lt;/version&gt;
                          &lt;/plugin&gt;
                          &lt;plugin&gt;
                              &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
                              &lt;version&gt;3.0.2&lt;/version&gt;
                          &lt;/plugin&gt;
                          &lt;plugin&gt;
                              &lt;artifactId&gt;maven-install-plugin&lt;/artifactId&gt;
                              &lt;version&gt;2.5.2&lt;/version&gt;
                          &lt;/plugin&gt;
                          &lt;plugin&gt;
                              &lt;artifactId&gt;maven-deploy-plugin&lt;/artifactId&gt;
                              &lt;version&gt;2.8.2&lt;/version&gt;
                          &lt;/plugin&gt;
                          &lt;!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --&gt;
                          &lt;plugin&gt;
                              &lt;artifactId&gt;maven-site-plugin&lt;/artifactId&gt;
                              &lt;version&gt;3.7.1&lt;/version&gt;
                          &lt;/plugin&gt;
                          &lt;plugin&gt;
                              &lt;artifactId&gt;maven-project-info-reports-plugin&lt;/artifactId&gt;
                              &lt;version&gt;3.0.0&lt;/version&gt;
                          &lt;/plugin&gt;`enter code here`
                      &lt;/plugins&gt;
                  &lt;/pluginManagement&gt;
              &lt;/build&gt;
          &lt;/project&gt;
  
  
          ```
          
          
  </code></pre>