Further work on maven integration; fixing bugs with the domain objects generation