I am on windows environment and using maven to compile my project. Although I just created the project and added the dependencies for various libararies.
As I added
Also look in the .mavenrc file in your home dir. This caught me off guard.
I changed everything as suggested only to find that my .mavenrc file set the JAVA_HOME to an older version.