MAVEN-191 - grails-maven-plugin fails with JDK7 

Fixes the same bug as http://jira.grails.org/browse/MAVEN-186 . For some reason, it wasn't merged here: https://github.com/grails/grails-maven/commit/c29e9191c16ad5447c9a9deae3c5d21f732820ed