Just ran into this issue. My java -version was 8 but my javac -version was 11. Once I changed the compilers version to 8 aswell, my maven project executed.