GGrec's solution doesn't work for me. I manage to fixed this issue by adding to pom.xml this:
finalNamemaven-compiler-plugin3.11.81.8
UPDATE:
In addition I figured out that everytime you run mvn install command on this pom.xml it overrides previous configuration. The right solution is either remove this version from pom.xml and set it up in eclipse options or just use configuration from pom.xml.