trying to fix problems when compiling in maven.