The maven-publish plugin now honors the transitive field of ModuleDependency and writes an exclude statement with artifactId and groupID '*' when transitive = false.