Specify source and target version in pom.xml.