remove useless method in maven sample