Take a look at your mvn script:
# ----------------------------------------------------------------------------
This change is made at the level of your Maven environment. Before starting Maven, you need to set the JAVA_HOME environment variable to the location of your version 1.7 of the JDK.
I assume that you are using the execute shell post-build step. If you use bash , you just need to type JAVA_HOME="path to your JDK 1.7 home" before the line containing your mvn command in the command text area of ββthe Jenkins job configuration as follows:

Kraal source share