Fixed Travis CI build error by modifying the pom.xml and build commands.