An alternative is to use : 

    @parameter property="gmaven.target" default-value="${maven.compiler.target}"

The important is by default to use the value of maven.compiler.target if it was set