Source:
public ArtifactInputStream getInputStream(String storageId, String repositoryId, String artifactPath) throws IOException, NoSuchAlgorithmException, ArtifactTransportException, ProviderImplementationException { Storage storage = getConfiguration().getStorage(storageId); logger.debug("Checking in " + storage.getId() + ":" + repositoryId + "..."); Repository groupRepository = storage.getRepository(repositoryId); final ArtifactInputStream isRepositoryAccept = getInputStreamFromRepositoryAcceptRules(repositoryId, artifactPath, storage); if (isRepositoryAccept != null) { return isRepositoryAccept; } final ArtifactInputStream isWildcardRepositoryAccept = getInputStreamFromWildcardRepositoryAcceptRules(artifactPath, storage); if (isWildcardRepositoryAccept != null) { return isWildcardRepositoryAccept; } final RuleSet denyRules = getRoutingRules().getDenyRules(repositoryId); final RuleSet wildcardDenyRules = getRoutingRules().getWildcardDeniedRules(); for (String storageAndRepositoryId : groupRepository.getGroupRepositories()) { String sId = getConfigurationManager().getStorageId(storage, storageAndRepositoryId); String rId = getConfigurationManager().getRepositoryId(storageAndRepositoryId); Repository r = getConfiguration().getStorage(sId).getRepository(rId); if (r.isInService() && !repositoryRejects(r.getId(), artifactPath, denyRules) && !repositoryRejects(r.getId(), artifactPath, wildcardDenyRules)) { ArtifactInputStream is; try { is = resolveArtifact(sId, r.getId(), artifactPath); } catch (FileNotFoundException e) { continue; } if (is != null) { return is; } } } return null; }

Target:
public ArtifactInputStream getInputStream(String storageId, String repositoryId, String artifactPath) throws IOException, NoSuchAlgorithmException, ArtifactTransportException, ProviderImplementationException { Storage storage = getConfiguration().getStorage(storageId); logger.debug("Checking in " + storage.getId() + ":" + repositoryId + "..."); Repository groupRepository = storage.getRepository(repositoryId); final ArtifactInputStream isRepositoryAccept = getInputStreamFromRepositoryAcceptRules(repositoryId, artifactPath, storage); if (isRepositoryAccept != null) { return isRepositoryAccept; } final ArtifactInputStream isWildcardRepositoryAccept = getInputStreamFromWildcardRepositoryAcceptRules(artifactPath, storage); if (isWildcardRepositoryAccept != null) { return isWildcardRepositoryAccept; } final RuleSet denyRules = getRoutingRules().getDenyRules(repositoryId); final RuleSet wildcardDenyRules = getRoutingRules().getWildcardDeniedRules(); for (String storageAndRepositoryId : groupRepository.getGroupRepositories()) { String sId = getConfigurationManager().getStorageId(storage, storageAndRepositoryId); String rId = getConfigurationManager().getRepositoryId(storageAndRepositoryId); Repository r = getConfiguration().getStorage(sId).getRepository(rId); if (r.isInService() && !repositoryRejects(r.getId(), artifactPath, denyRules) && !repositoryRejects(r.getId(), artifactPath, wildcardDenyRules)) { ArtifactInputStream is; try { is = resolveArtifact(sId, r.getId(), artifactPath); } catch (FileNotFoundException e) { logger.debug(String.format("Artifact not found in repository, continue group artifact search: repo-[%s]; path-[%s].", r.getId(), artifactPath)); continue; } if (is != null) { return is; } } } return null; }