public void addArtifactWithExclusions(String coordinate, String scope, String... exclusions){
DefaultArtifact artifact = new DefaultArtifact( coordinate );
List<Exclusion> list = new ArrayList<Exclusion>( exclusions.length );
for( String exclusion : exclusions ){
String[] parts = exclusion.split( ":" );
list.add( new Exclusion( parts[ 0 ], parts[ 1 ], "*", "*" ) );
}
Dependency dependency = new Dependency( artifact, scope, false, list);
dependencies.add( dependency );
}