artifactDescriptor.setName(artifact.getArtifactId());
artifactDescriptor.setVersion(artifact.getVersion());
artifactDescriptor.setClassifier(artifact.getClassifier());
artifactDescriptor.setType(type);
}
FileScanner scanner = new FileScannerImpl(store, scannerPlugins);
try {
for (Descriptor descriptor : scanner.scanDirectory(directory)) {
artifactDescriptor.getContains().add(descriptor);
}
} catch (IOException e) {
throw new MojoExecutionException("Cannot scan directory '" + directory.getAbsolutePath() + "'", e);
}