title: How do I set the path to my Cucumber features using cucumber-junit?
body: <p>I try to build my first executable specifications with Java and Maven. I created a simple project with this structure:</p>
  
  <pre><code>specification
  |-src
    |-test
      |-java
        |-mypackage
          |-MyFeatureTest.java
      |-resources
        |-MyFeature.feature
  </code></pre>
  
  <p>In the junit test <code>MyFeatureTest.java</code> I have this:</p>
  
  <pre><code>import org.junit.runner.RunWith;
  import cucumber.junit.Cucumber;
  
  @RunWith(Cucumber.class)
  public class HomepageTest {
  }
  </code></pre>
  
  <p>Now <a href="https://github.com/cucumber/cucumber-jvm/wiki/IDE-support">https://github.com/cucumber/cucumber-jvm/wiki/IDE-support</a> says that I should add the following line:</p>
  
  <pre><code>@Cucumber.Options(paths={"my/super.feature:34"})
  </code></pre>
  
  <p>I tried to modify that to</p>
  
  <pre><code>@Cucumber.Options(paths={"src/test/resources/"})
  </code></pre>
  
  <p>but the annotation <code>@Cucumber.Options</code> isn't available at all. My <code>pom.xml</code> has this dependencies:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;junit&lt;/groupId&gt;
    &lt;artifactId&gt;junit&lt;/artifactId&gt;
    &lt;version&gt;4.10&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;info.cukes&lt;/groupId&gt;
    &lt;artifactId&gt;cucumber-java&lt;/artifactId&gt;
    &lt;version&gt;1.0.0.RC20&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;info.cukes&lt;/groupId&gt;
    &lt;artifactId&gt;cucumber-junit&lt;/artifactId&gt;
    &lt;version&gt;1.0.0.RC20&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Am I missing something?</p>
  
  <p><strong>Update</strong> I was missing something: The cucumber feature file has to be in a subdirectory <code>src/test/resources/mypackage/</code>. Otherwise it won't be picked up by the junit test.</p>
  
  <p><em>I can run my feature tests when I put them in the same directory <code>src/main/test/</code>, so it's not a blocker for me. But I'd like to understand the whole setup.</em></p>