in src/main/java/org/apache/maven/resolver/internal/ant/types/Exclusion.java [126:150]
public void setCoords(String coords) {
checkAttributesAllowed();
if (groupId != null || artifactId != null || extension != null || classifier != null) {
throw ambiguousCoords();
}
Pattern p = Pattern.compile("([^: ]+)(:([^: ]+)(:([^: ]+)(:([^: ]*))?)?)?");
Matcher m = p.matcher(coords);
if (!m.matches()) {
throw new BuildException("Bad exclusion coordinates '" + coords
+ "', expected format is <groupId>[:<artifactId>[:<extension>[:<classifier>]]]");
}
groupId = m.group(1);
artifactId = m.group(3);
if (artifactId == null) {
artifactId = "*";
}
extension = m.group(5);
if (extension == null) {
extension = "*";
}
classifier = m.group(7);
if (classifier == null) {
classifier = "*";
}
}