title: Cucumber: NoSuchMethodError: cucumber.runtime.formatter.Plugins
body: <p>I am getting the exception in subject on IntelliJ and have no idea why.</p>
  
  <p><a href="https://i.stack.imgur.com/8XuKV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8XuKV.jpg" alt="Project structure"></a></p>
  
  <p>This is the runner file:</p>
  
  <pre><code>@RunWith(Cucumber.class)
  @CucumberOptions(
          features = "src/main/resources/features",
          glue = {"DemoDefinitions"},
          tags = "@tests"
          )
  public class CucumberRunner {}
  </code></pre>
  
  <p>This is the definitions file:</p>
  
  <pre><code>import cucumber.api.java.en.Given;
  
  public class DemoDefinitions {
  
      @Given("Login to Azure Succeeded")
      public void login_to_Azure_Succeeded() {
          // Write code here that turns the phrase above into concrete actions
          throw new cucumber.api.PendingException();
      }
  }
  </code></pre>
  
  <p>This is the feature file:</p>
  
  <pre><code>@tests
  
  Feature: PoC Feature
  
    Scenario: PoC Operations Scenario
      Given Login to Azure Succeeded
  </code></pre>
  
  <p>And the maven dependencies are:</p>
  
  <pre><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.cucumber&lt;/groupId&gt;
          &lt;artifactId&gt;cucumber-core&lt;/artifactId&gt;
          &lt;version&gt;4.4.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.cucumber&lt;/groupId&gt;
          &lt;artifactId&gt;cucumber-java&lt;/artifactId&gt;
          &lt;version&gt;4.2.6&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.cucumber&lt;/groupId&gt;
          &lt;artifactId&gt;cucumber-junit&lt;/artifactId&gt;
          &lt;version&gt;4.2.6&lt;/version&gt;
      &lt;/dependency&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;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>When I run execute the runner class I get:</p>
  
  <blockquote>
    <p>java.lang.NoSuchMethodError:
    cucumber.runtime.formatter.Plugins.(Ljava/lang/ClassLoader;Lcucumber/runtime/formatter/PluginFactory;Lcucumber/api/event/EventPublisher;Lio/cucumber/core/options/PluginOptions;)V</p>
  </blockquote>
  
  <p>When I run the feature file itself I get:</p>
  
  <blockquote>
    <p>Undefined scenarios:
    /C:/Users/talt/IdeaProjects/Poc/src/main/resources/features/poc.feature:5
    PoC Operations Scenario</p>
    
    <p>1 Scenarios (1 undefined) 1 Steps (1 undefined)</p>
  </blockquote>
  
  <p>Can you please advise what is the problem?</p>