title: OSGI Pax Exam simple test running on maven but not on IDE
body: <p>I am doing a very simple Pax Exam test.</p>
  
  <p>While running it with maven "mvn verify", it is success.
  While running it with my IDE, I get the following error.</p>
  
  <p>Anyone know if I am missing a jar or is this a bug ? </p>
  
  <p>Thanks,</p>
  
  <pre><code>java.lang.Exception: No tests found matching Method checkBundles(test.TestPaxExam) from org.junit.internal.requests.ClassRequest@1a19012
  at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:37)
  at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:43)
  at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
  at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
  </code></pre>
  
  <p>Here is my test class :</p>
  
  <pre><code>package test;
  
  import static org.junit.Assert.*;
  import static org.ops4j.pax.exam.CoreOptions.*;
  
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.ops4j.pax.exam.Option;
  import org.ops4j.pax.exam.junit.Configuration;
  import org.ops4j.pax.exam.junit.JUnit4TestRunner;
  import org.osgi.framework.BundleContext;
  
  import javax.inject.Inject;
  
  @RunWith(JUnit4TestRunner.class)
  public class TestPaxExam {
  
  @Inject
  public BundleContext bc;
  
  @Configuration
  public Option[] config() {
  
      return options(
              junitBundles()
      );
  }
  
  @Test
  public void checkBundles() {
      assertNotNull(bc);
  }
  }
  </code></pre>
  
  <p>And here is my pom.xml :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;groupId&gt;TestPaxExam&lt;/groupId&gt;
  &lt;artifactId&gt;TestPaxExam&lt;/artifactId&gt;
  &lt;version&gt;1.0&lt;/version&gt;
  
  &lt;properties&gt;
      &lt;exam.version&gt;2.5.0&lt;/exam.version&gt;
      &lt;url.version&gt;1.4.0&lt;/url.version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.ops4j.pax.exam&lt;/groupId&gt;
          &lt;artifactId&gt;pax-exam-container-native&lt;/artifactId&gt;
          &lt;version&gt;${exam.version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.ops4j.pax.exam&lt;/groupId&gt;
          &lt;artifactId&gt;pax-exam-junit4&lt;/artifactId&gt;
          &lt;version&gt;${exam.version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.ops4j.pax.exam&lt;/groupId&gt;
          &lt;artifactId&gt;pax-exam-link-mvn&lt;/artifactId&gt;
          &lt;version&gt;${exam.version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.ops4j.pax.url&lt;/groupId&gt;
          &lt;artifactId&gt;pax-url-aether&lt;/artifactId&gt;
          &lt;version&gt;${url.version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
          &lt;artifactId&gt;org.apache.felix.framework&lt;/artifactId&gt;
          &lt;version&gt;3.2.2&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
          &lt;artifactId&gt;logback-core&lt;/artifactId&gt;
          &lt;version&gt;0.9.20&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
          &lt;artifactId&gt;logback-classic&lt;/artifactId&gt;
          &lt;version&gt;0.9.20&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.7&lt;/source&gt;
                  &lt;target&gt;1.7&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  
  &lt;/dependencies&gt;
  
  &lt;/project&gt;
  </code></pre>