fix warnings in pom.xml, and reformat codes.