OK so using Maven compiler plugin 3.1+ introduces a weird regression. Never seen this before so following workaround in SO link found in pom.xml