java - error compiling java7 project with maven (heroku) -
i'm trying upload on heroku simple servlet maven. locally servlet working fine when use:
git force heroku master
i "build failure" error message:
[error] failed execute goal org.apache.maven.plugins:maven-compiler-plugin: 3.1:compile (default-compile) on project helloservlet: fatal error compiling: invalid target release: 1.7 -> [help 1]
i changed java 1.7 in scheme variables, maven running java 1.7, javac version 1.7?
am missing here?
edit: java_home , error screenshot
by default heroku apps run on openjdk 6.you have add together additional properties create app utilize open jdk 7 on heroku.
refer : https://devcenter.heroku.com/articles/add-java-version-to-an-existing-maven-app
java git maven heroku
No comments:
Post a Comment