title: Failed to build app with Maven, I can run code locally, but fail to deploy on heroku
body: <p>This is my code in github:
  <a href="https://github.com/q463746583/CS4500-Assignment2" rel="noreferrer">https://github.com/q463746583/CS4500-Assignment2</a>
  I can run it successfully in the local,
  but while I try to deploy the code on heroku,
  There is the error description:</p>
  
  <pre><code>       [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/com/thoughtworks/qdox/qdox/2.0-M9/qdox-2.0-M9.jar (317 kB at 6.0 MB/s)
         [INFO] Changes detected - recompiling the module!
         [INFO] Compiling 4 source files to /tmp/build_3c4f3b86a26f6e3ae1cbe89639f79f26/target/classes
         [INFO] ------------------------------------------------------------------------
         [INFO] BUILD FAILURE
         [INFO] ------------------------------------------------------------------------
         [INFO] Total time: 13.261 s
         [INFO] Finished at: 2019-01-24T00:47:07Z
         [INFO] ------------------------------------------------------------------------
         [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project myapp: Fatal error compiling: invalid target release: 11 -&gt; [Help 1]
         [ERROR] 
         [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
         [ERROR] Re-run Maven using the -X switch to enable full debug logging.
         [ERROR] 
         [ERROR] For more information about the errors and possible solutions, please read the following articles:
         [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
   !     ERROR: Failed to build app with Maven
         We're sorry this build is failing! If you can't find the issue in application code,
         please submit a ticket so we can help: https://help.heroku.com/
   !     Push rejected, failed to compile Java app.
   !     Push failed
  </code></pre>