I have attached my sample project structure, you can check the package name is also correct, my compiler and jre are of same version.`
[INFO] --- maven-compil