title: Maven: compiling and testing on different source levels
body: <p>I am currently working on a project which will run on an embedded device. The device runs a Java ME JRE (comparable to Java 1.4).</p>
  
  <p>Because of this maven is configured to compile for source &amp; target level 1.4.</p>
  
  <p>Is it possible to run the maven test phase on a different source/target level? Because this way I could use Mockito for unit-testing.</p>