public static Set < Exclusion > setupExcludedArtifacts ( List < String > excludedArtifacts ) throws MojoExecutionException { Set < Exclusion > exclusionSet = new HashSet <> ( ) ; for ( String artifact : Optional . ofNullable ( excludedArtifacts ) . orElse ( Collections . emptyList ( ) ) ) { exclusionSet . add ( convertExclusionPatternIntoExclusion ( artifact ) ) ; } for ( String artifact : BLACKLISTED_ARTIFACTS ) { exclusionSet . add ( convertExclusionPatternIntoExclusion ( artifact ) ) ; } return exclusionSet ; }
Build up an exclusion set