title: IntelliJ: Overriding new java version did not work
body: <p>I have a project where I want to use <code>Java v 1.7</code>, so I made the change in my project for Java Compiler
  <img src="https://i.stack.imgur.com/63jWO.png" alt="enter image description here">
  and maven compiler as<br>
  <img src="https://i.stack.imgur.com/5pWuw.png" alt="enter image description here"></p>
  
  <p>But still When I deploy my JBoss application via IntelliJ I see error like </p>
  
  <pre><code>13:04:24,295 WARN  [org.jboss.modules] (MSC service thread 1-3) Failed to define class com.myorg.bb.business.LoginManager in Module "deployment.web-1.0-SNAPSHOT.war:main" from Service Module Loader: java.lang.UnsupportedClassVersionError: com/myorg/bb/business/LoginManager : Unsupported major.minor version 51.0
      at java.lang.ClassLoader.defineClass1(Native Method) [classes.jar:1.6.0_29]
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [classes.jar:1.6.0_29]
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [classes.jar:1.6.0_29]
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [classes.jar:1.6.0_29]
  </code></pre>
  
  <p>How can I make this work with Java v1.7?</p>