Set<String> duplicates = new HashSet<String>(size);
for (Artifact artifact : artifacts) {
ArtifactHelper.fixArtifactHandler(artifact.getArtifactHandler());
String deployedName = fileNameMapping.mapFileName(artifact);
String scope = artifact.getScope();
boolean isDeployed = (Artifact.SCOPE_COMPILE.equals(scope) || Artifact.SCOPE_RUNTIME.equals(scope))
&& !artifact.isOptional()
&& opts.isPackaged("WEB-INF/lib/"+deployedName); //$NON-NLS-1$
if (isDeployed) {