try {
projectDescriptor = resolveProject(project, MavenProjectDirectoryDescriptor.class);
projectDescriptor.setFileName(project.getBasedir().getAbsolutePath());
projectDescriptor.setPackaging(project.getPackaging());
} finally {
store.commitTransaction();
}
Artifact artifact = project.getArtifact();
ArtifactDescriptor mainArtifactDescriptor = scanClassesDirectory(projectDescriptor, artifact, false, project.getBuild().getOutputDirectory(), scanner);
ArtifactDescriptor testArtifactDescriptor = scanClassesDirectory(projectDescriptor, artifact, true, project.getBuild().getTestOutputDirectory(),
scanner);