A clone of codehaus's  maven-hibernate3 project, fix some errors.