PatternResultFileSet fileSet = downloader.getClient().searchArtifactsByPattern(pattern);
Set<String> filesToDownload = fileSet.getFiles();
log.info("Found " + filesToDownload.size() + " dependencies by doing a pattern search.");
for (String fileToDownload : filesToDownload) {
downloadableArtifacts.add(
new DownloadableArtifact(fileSet.getRepoUri(), dependencyPattern.getTargetDirectory(),
fileToDownload, dependencyPattern.getMatrixParams(), pattern,
dependencyPattern.getPatternType()));
}
return downloadableArtifacts;