fix generics for maven build