Fix generic type omitted + maven-publish plugin