Dependency issues in Intellij

I am trying to get up to speed with the openmrs-core repo, but for some reason I keep running into the following errors with the following packages. I don’t know if it is an IDE problem, but I could really use some help.

When I run the mvn clean install command as per the README file, i get the following error:

@dkayiwa @sharif

What does this command return? mvn -v

Switch to Java 8