private Set convertToAetherExclusions()

in src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java [1693:1707]


    private Set<Exclusion> convertToAetherExclusions(Set<DependencyExclusion> exclusions) {
        if (exclusions == null || exclusions.isEmpty()) {
            return Collections.emptySet();
        }
        Set<Exclusion> aetherExclusions = new HashSet<>();
        for (DependencyExclusion exclusion : exclusions) {
            Exclusion aetherExclusion = new Exclusion(
                    exclusion.getGroupId(),
                    exclusion.getArtifactId(),
                    exclusion.getClassifier(),
                    exclusion.getExtension());
            aetherExclusions.add(aetherExclusion);
        }
        return aetherExclusions;
    }