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) {
throw new MojoExecutionException("Cannot scan directory '" + directory.getAbsolutePath() + "'", e);
}
return null;
}