descriptor.setVersion(artifact.getVersion());
descriptor.setClassifier(artifact.getClassifier());
descriptor.setType(type);
}
List<ArtifactScannerPlugin> scannerPlugins = new ArrayList<>();
scannerPlugins.add(new PackageScannerPlugin());
scannerPlugins.add(new ClassScannerPlugin());
ArtifactScanner scanner = new ArtifactScannerImpl(store, scannerPlugins);
try {
scanner.scanDirectory(descriptor, directory);
} catch (IOException e) {