title: Cucumber Step Definition from dependency jars
body: <p>I have multiple projects using similar step definition across the different projects. Hence using all step definition in single project and added as dependency jar in maven.
  When I run using maven command it says : </p>
  
  <p>You can implement missing steps with the snippets below:</p>
  
  <pre><code>@When("^Import a canvas from \"(.*?)\" to project \"(.*?)\"$")
  public void import_a_canvas_from_to_project(String arg1, String arg2) throws Throwable {
   // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
    }
  </code></pre>
  
  <p>but when I add package in same project it works fine. (Even in eclipse from different projects works). Is there any way to run such scenarios from maven and jenkins?</p>
  
  <p>I am using eclipse IDE. maven command I used is :
       mvn -DprofileTest=cucumberID clean -P cucumberID test</p>
  
  <p>cucumberID is my profile name.</p>
  
  <p>Following profile I added in pom.xml</p>
  
  <pre><code>&lt;profile&gt;
  &lt;id&gt;cucumberID&lt;/id&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;version&gt;2.11&lt;/version&gt;
                  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;testFailureIgnore&gt;true&lt;/testFailureIgnore&gt;
                      &lt;includes&gt;
                                  &lt;include&gt;step_definitions/LoginTest.java&lt;/include&gt;
                      &lt;/includes&gt;
                      &lt;parallel&gt;classes&lt;/parallel&gt;
                      &lt;threadCount&gt;3&lt;/threadCount&gt;
                      &lt;useFile&gt;true&lt;/useFile&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/profile&gt;
  </code></pre>