Changed artifactId to project.artifactId and version to project.version in pom.xml.