Added check in Maven to prevent releases with the wrong Java version