I think our aerogear-parent already has compiler.target https://github.com/aerogear/aerogear-parent/blob/master/pom.xml#L84. In theory it should respect these rules and the lines below shouldn't exist.