allow wildcards in groupId or artifactId

According to https://maven.apache.org/pom.html#Exclusions (and https://maven.apache.org/docs/3.2.1/release-notes.html) wildcards are allowed in Maven POM's schema
This commit is contained in:
Dennis Hoersch
2018-03-06 13:48:41 +00:00
committed by Dale Wijnand
parent 1a566d8750
commit c9e4ace8de
@@ -425,7 +425,7 @@ class MakePom(val log: Logger) {
def makeExclusion(exclRule: ExcludeRule): Either[String, NodeSeq] = {
val m = exclRule.getId.getModuleId
val (g, a) = (m.getOrganisation, m.getName)
if (g == null || g.isEmpty || g == "*" || a.isEmpty || a == "*")
if (g == null || g.isEmpty || a == null || a.isEmpty)
Left(
"Skipped generating '<exclusion/>' for %s. Dependency exclusion should have both 'org' and 'module' to comply with Maven POM's schema."
.format(m)