title: Using Java 1.7 without maven-compiler-plugin
body: <p>Is there any way I can force maven to compile using java 1.7 standard without using the maven-compiler-plugin? I have read about the JAVA_HOME being not set properly, but I don't think this is the case.
  I have added the following line in the mvn script: </p>
  
  <pre><code>echo $JAVA_HOME
  </code></pre>
  
  <p>Below is the output of mvn --version</p>
  
  <blockquote>
    <blockquote>
      <p>Apache Maven 3.0.4</p>
      
      <p>Maven home: /usr/share/maven</p>
      
      <p>Java version: 1.7.0_45, vendor: Oracle Corporation</p>
      
      <p>Java home: /usr/lib/jvm/java-7-oracle/jre</p>
      
      <p>Default locale: en_US, platform encoding: UTF-8</p>
      
      <p>OS name: "linux", version: "3.11.0-12-generic", arch: "i386", family: "unix"</p>
    </blockquote>
  </blockquote>
  
  <p>One problem would be that $JAVA_HOME is set to /usr/lib/jvn/java-7-oracle while manven reports it to be $JAVA_HOME/jre.</p>
  
  <p>The question is is there a way to configure maven tu use java 1.7 (similar to javac -target 1.7) ?</p>