if (!tmpServicesDir.exists() && !tmpServicesDir.mkdirs()) {
throw new MojoExecutionException("Error while creating the directory: " +
tmpServicesDir.getPath());
}
log.debug("Initializing class scanner ...");
ClassScanner scanner = new ClassScanner(buildOutputDirectory);
for (Artifact artifact : filterArtifacts(project.getArtifacts(),
new ScopeArtifactFilter(Artifact.SCOPE_COMPILE))) {
scanner.addToClasspath(artifact.getFile());
}