title: Manifest.mf cannot find org.junit
body: <p>I'm trying to run jUnit tests for an Eclipse RCP application with Tycho.</p>
  
  <p>For that I created a simple jUnit test, that runs when I click on Run as > jUnit-Test. But when I want to run it with mvn test, it doesn't find jUnit. </p>
  
  <p>I read in the Internet that I have to add jUnit to the Build-Path. -> I already did that. Furthermore I read that I have to add jUnit as a require-bundle in my Manifest.mf file. But there is the problem!! I get the error: Bundle 'org.junit' canot be resolved.</p>
  
  <p>My MANIFEST.MF file looks like this:</p>
  
  <pre><code>    Manifest-Version: 1.0
      Bundle-ManifestVersion: 2
      Bundle-Name: Tests
      Bundle-SymbolicName: myPackageName
      Bundle-Version: 1.0.0.qualifier
      Bundle-Vendor: myCompany
      Fragment-Host: thePackageWhereTestesPluginIs
      Bundle-RequiredExecutionEnvironment: JavaSE-1.6
      Require-Bundle: org.junit
  </code></pre>
  
  <p>Where is my mistake? When I take org.junit4 it cannot be resolved either...</p>
  
  <p>Thank you!</p>
  
  <p>Update: </p>
  
  <p>Now I use instead of require-bundle:</p>
  
  <pre><code>    Import-package: org.junit4
  </code></pre>
  
  <p>(or org.junit, its' behavior is the same) and it can be resolved in the manifest.mf file. But when I run it, I get the following error:
  [ERROR] -> [Help 1]
  org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle myTestBundle cannot be resolved
  Resolution errors:
     Bundle myTestBundle - Missing Constraint: Import-Package: org.junit4; version="0.0.0"</p>
  
  <p>How can I solve this?</p>
  
  <p>Thank you!!</p>
  
  <p>My pom file of the test bundle:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;parent&gt;
          &lt;artifactId&gt;myProject.tycho.master&lt;/artifactId&gt;
          &lt;groupId&gt;myProject&lt;/groupId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;relativePath&gt;../myProject.tycho.master/pom.xml&lt;/relativePath&gt;
      &lt;/parent&gt;
      &lt;groupId&gt;myProject&lt;/groupId&gt;
      &lt;artifactId&gt;myProject.myTestBundle&lt;/artifactId&gt;
      &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;eclipse-test-plugin&lt;/packaging&gt;
  
  &lt;dependencies&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;junit&lt;/groupId&gt;
      &lt;artifactId&gt;junit&lt;/artifactId&gt;
      &lt;version&gt;4.8.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>The parent pom:</p>
  
  
  
  <pre><code>    &lt;project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;myProject&lt;/groupId&gt;
  &lt;artifactId&gt;myProject.tycho.master&lt;/artifactId&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  
  &lt;properties&gt;
      &lt;tycho.version&gt;0.17.0&lt;/tycho.version&gt;
  &lt;/properties&gt;
  
  &lt;modules&gt;
      &lt;module&gt;../myProject.myTestBundle&lt;/module&gt;
  
  &lt;/modules&gt;
  
  
  
  &lt;repositories&gt;
      &lt;!-- configure p2 repository to resolve against --&gt;
      &lt;repository&gt;
          &lt;id&gt;Repository1&lt;/id&gt;
          &lt;layout&gt;p2&lt;/layout&gt;
          &lt;url&gt;url-to-a-p2-site-on-my-server&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repositories&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;resolver&gt;p2&lt;/resolver&gt;
                  &lt;pomDependencies&gt;consider&lt;/pomDependencies&gt;
                  &lt;target&gt;
                      &lt;artifact&gt;
                          &lt;groupId&gt;myGroupId&lt;/groupId&gt;
                          &lt;artifactId&gt;myGroupId.target&lt;/artifactId&gt;
                          &lt;classifier&gt;targetPlatform&lt;/classifier&gt;
                      &lt;/artifact&gt;
                  &lt;/target&gt;
                  &lt;environments&gt;
                      &lt;environment&gt;
                          &lt;os&gt;macosx&lt;/os&gt;
                          &lt;ws&gt;cocoa&lt;/ws&gt;
                          &lt;arch&gt;x86_64&lt;/arch&gt;
                      &lt;/environment&gt;
                      &lt;environment&gt;
                          &lt;os&gt;linux&lt;/os&gt;
                          &lt;ws&gt;gtk&lt;/ws&gt;
                          &lt;arch&gt;x86&lt;/arch&gt;
                      &lt;/environment&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;environment&gt;
                          &lt;os&gt;win32&lt;/os&gt;
                          &lt;ws&gt;win32&lt;/ws&gt;
                          &lt;arch&gt;x86_64&lt;/arch&gt;
                      &lt;/environment&gt;
                  &lt;/environments&gt;
                  &lt;ignoreTychoRepositories&gt;false&lt;/ignoreTychoRepositories&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
      &lt;/project&gt;
  </code></pre>
  
  <p>Update:
  I think I resolved the problem!
  I added jUnit to my p2 Update sites and now I don't get any errors!  </p>