added a prepare method to ensure pom file is ready be changed