diff --git a/maven-repository-reports-standard/src/main/java/org/apache/maven/repository/reporting/DefaultArtifactReporter.java b/maven-repository-reports-standard/src/main/java/org/apache/maven/repository/reporting/DefaultArtifactReporter.java index 2769dc59a..6136fbf4c 100644 --- a/maven-repository-reports-standard/src/main/java/org/apache/maven/repository/reporting/DefaultArtifactReporter.java +++ b/maven-repository-reports-standard/src/main/java/org/apache/maven/repository/reporting/DefaultArtifactReporter.java @@ -24,7 +24,7 @@ import java.util.Iterator; import java.util.List; /** - * + * @plexus.component role-hint="default" */ public class DefaultArtifactReporter implements ArtifactReporter diff --git a/maven-repository-reports-standard/src/main/java/org/apache/maven/repository/reporting/DuplicateArtifactFileReportProcessor.java b/maven-repository-reports-standard/src/main/java/org/apache/maven/repository/reporting/DuplicateArtifactFileReportProcessor.java index e865e8cec..6c86e3ddb 100644 --- a/maven-repository-reports-standard/src/main/java/org/apache/maven/repository/reporting/DuplicateArtifactFileReportProcessor.java +++ b/maven-repository-reports-standard/src/main/java/org/apache/maven/repository/reporting/DuplicateArtifactFileReportProcessor.java @@ -71,6 +71,11 @@ public class DuplicateArtifactFileReportProcessor //@todo remove hard-coded value; current value enables tests to pass! File indexPath = new File( "target/.index" ); + if ( !indexPath.exists() ) + { + indexPath.mkdirs(); + } + RepositoryIndex index; try {