We successfully added all the required jars to our project, but we need to perform one small configuration in our
pom.xml file, that is, telling Maven to use Java Version 7 while building our project. How do we tell Maven to do this? Simply add two property entries in
pom.xml. Let's do this.
pom.xml. You will see some tabs at the bottom of
pom.xml; select the Overview tab from the bottom of
pom.xml, expand the properties accordion, and click on the Create button.
maven.compiler.sourceand Value as