+ Start a Discussion
Anjali Sharma 87Anjali Sharma 87 

Getting error while pushing heroku through eclipse

Hi,

I am getting an error when we push heroku app through eclipse .The error is as follow:
 
pre-receive hook declined
Compressing source files... done.
Building source:
Using set buildpack heroku/java
Java app detected
Installing OpenJDK 1.6... done
Installing Maven 3.3.9... done
Executing: mvn -B -DskipTests clean dependency:list install
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0
 !     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
Verifying deploy...
!    Push rejected.

Please help me.

Thanks
Siddhartha