fix maven plugin to take into account transitive dependencies