title: My JUnit tests executes with maven build in Java 11, but unable to run same Junit tests via RunIT->Run As->Units, which always says not JUnits found
body: <p>My module test project is supposed to be built using Java 11 as it is referencing to a jar which is build in Java 11. Hence I had to compile my code in Java 11. <strong>When I do Maven clean install, my JUnit test cases are executed without any issue.</strong> <em>But when I tried to run my test cases via RunIT->Run As-> JUnit tests, it says "no JUnit tests found"</em></p>
  
  <ul>
  <li>When I first set up this project, I was able to run via RunIT->Run As-> JUnit tests, which worked absolutely fine. But I had another module in my workspace, which was working on Java 1.8. After testing the tests in that module and coming back to my test project, this stopped working. </li>
  <li>When I set compiler to Java 1.8, my tests are identified</li>
  <li><p>Following are the configurations I have tried with</p>
  
  <ul>
  <li>I am working on Eclipse Java 2019-03, which supports Java 11</li>
  <li>I have set Preferences-> java -> Compiler -> Compiler compliance level to 11, and Installed JREs point to Java 11.</li>
  <li>Project -> Properties -> Java Build Path -> Libraries -> set to Java 11</li>
  <li>Project -> Properties -> Java Compiler -> set to Java 11</li>
  <li>In my module pom, I am referencing to JUnit 4</li>
  <li>While executing RunIT-> Run As -> Run Configurations, I have selected Java 11 JRE.</li>
  <li>I have done maven clean install, and all the test-classes are present in the expected target folder. I have Maven-> clean, deletes the target folder.</li>
  <li>After building my project via Maven, I have done "Maven Update" as well.</li>
  </ul></li>
  <li><p>In my module pom file, I have set compiler version</p></li>
  </ul>
  
  <pre class="lang-py prettyprint-override"><code>&lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;${maven-compiler-plugin.version}&lt;/version&gt;
          &lt;configuration&gt;
          &lt;source&gt;11&lt;/source&gt;
          &lt;target&gt;11&lt;/target&gt;
          &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
          &lt;testSource&gt;11&lt;/testSource&gt;
          &lt;testTarget&gt;11&lt;/testTarget&gt;
          &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>