modify some java files to adapt maven