Remove .class and modify pom.xml