title: Cannot resolve Mockito dependency in a Tycho project
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7299993/how-to-reference-mockito-within-tycho">How to reference mockito within tycho?</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to get a test feature project building with Tycho, but it fails to resolve dependencies listed in my pom from the Maven central repository that is listed in my parent pom. Here is the relevant part from my parent pom: </p>
  
  <pre><code>    &lt;properties&gt;
              &lt;tycho-version&gt;0.12.0&lt;/tycho-version&gt;
      &lt;/properties&gt;
  
      &lt;repositories&gt;
              &lt;repository&gt;
                      &lt;id&gt;helios&lt;/id&gt;
                      &lt;layout&gt;p2&lt;/layout&gt;
                      &lt;url&gt;http://download.eclipse.org/releases/helios/&lt;/url&gt;
              &lt;/repository&gt;
      &lt;/repositories&gt;
  
      &lt;pluginRepositories&gt;
              &lt;pluginRepository&gt;
                      &lt;id&gt;central&lt;/id&gt;
                      &lt;name&gt;Maven Plugin Repository&lt;/name&gt;
                      &lt;url&gt;http://repo1.maven.org/maven2&lt;/url&gt;
                      &lt;layout&gt;default&lt;/layout&gt;
                      &lt;snapshots&gt;
                              &lt;enabled&gt;false&lt;/enabled&gt;
                      &lt;/snapshots&gt;
                      &lt;releases&gt;
                              &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
                      &lt;/releases&gt;
              &lt;/pluginRepository&gt;
      &lt;/pluginRepositories&gt;
  
      &lt;build&gt;
              &lt;plugins&gt;
                      &lt;plugin&gt;
                              &lt;groupId&gt;org.eclipse.tycho&lt;/groupId&gt;
                              &lt;artifactId&gt;tycho-maven-plugin&lt;/artifactId&gt;
                              &lt;version&gt;${tycho-version}&lt;/version&gt;
                              &lt;extensions&gt;true&lt;/extensions&gt;
                      &lt;/plugin&gt;
                      &lt;plugin&gt;
                              &lt;groupId&gt;org.eclipse.tycho&lt;/groupId&gt;
                              &lt;artifactId&gt;target-platform-configuration&lt;/artifactId&gt;
                              &lt;version&gt;${tycho-version}&lt;/version&gt;
  
                              &lt;configuration&gt;
                                      &lt;pomDependencies&gt;consider&lt;/pomDependencies&gt;
  
                                      &lt;resolver&gt;p2&lt;/resolver&gt;
  
                                      &lt;environments&gt;
                                              &lt;environment&gt;
                                                      &lt;os&gt;linux&lt;/os&gt;
                                                      &lt;ws&gt;gtk&lt;/ws&gt;
                                                      &lt;arch&gt;x86_64&lt;/arch&gt;
                                              &lt;/environment&gt;
                                              &lt;environment&gt;
                                                      &lt;os&gt;win32&lt;/os&gt;
                                                      &lt;ws&gt;win32&lt;/ws&gt;
                                                      &lt;arch&gt;x86&lt;/arch&gt;
                                              &lt;/environment&gt;
                                      &lt;/environments&gt;
                              &lt;/configuration&gt;
                      &lt;/plugin&gt;
              &lt;/plugins&gt;
      &lt;/build&gt;
  </code></pre>
  
  <p>and here my feature pom: </p>
  
  <pre><code>    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;parent&gt;
              &lt;artifactId&gt;parent&lt;/artifactId&gt;
              &lt;groupId&gt;com.example&lt;/groupId&gt;
              &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
      &lt;/parent&gt;
      &lt;groupId&gt;com.example&lt;/groupId&gt;
      &lt;artifactId&gt;com.example.testing.feature&lt;/artifactId&gt;
      &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;eclipse-feature&lt;/packaging&gt;
  
      &lt;dependencyManagement&gt;
              &lt;dependencies&gt;
                      &lt;dependency&gt;
                              &lt;groupId&gt;org.mockito&lt;/groupId&gt;
                              &lt;artifactId&gt;mockito-all&lt;/artifactId&gt;
                              &lt;version&gt;1.8.5&lt;/version&gt;
                      &lt;/dependency&gt;
              &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
  
      &lt;dependencies&gt;
              &lt;dependency&gt;
                      &lt;groupId&gt;org.mockito&lt;/groupId&gt;
                      &lt;artifactId&gt;mockito-all&lt;/artifactId&gt;
              &lt;/dependency&gt;
      &lt;/dependencies&gt;
  </code></pre>
  
  <p>when I run mvn clean package on my feature project, I get the following: </p>
  
  <p>[INFO] Adding repository <a href="http://download.eclipse.org/releases/helios/" rel="nofollow noreferrer">http://download.eclipse.org/releases/helios/</a>
  [INFO] Adding repository <a href="http://download.eclipse.org/releases/helios/" rel="nofollow noreferrer">http://download.eclipse.org/releases/helios/</a>
  [DEBUG] Added p2 repository helios (<a href="http://download.eclipse.org/releases/helios/" rel="nofollow noreferrer">http://download.eclipse.org/releases/helios/</a>
  ) 
  [DEBUG] Ignoring Maven repository central (<a href="http://repo1.maven.org/maven2" rel="nofollow noreferrer">http://repo1.maven.org/maven2</a>) </p>
  
  <p>and then my build fails, because my dependency cannot be resolved. Am I missing something? Is this because of the p2 resolver configured for target-platform-configuration?</p>