From f8aa5f9e7896b1977b28b1acad484c28074902c5 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 15 Aug 2011 21:27:13 +0000 Subject: [PATCH] add OSGI index creator to the the list of indexors used by archiva git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1158020 13f79535-47bb-0310-9956-ffa450edef68 --- .../common/utils/ArchivaNexusIndexerUtil.java | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/archiva-modules/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/ArchivaNexusIndexerUtil.java b/archiva-modules/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/ArchivaNexusIndexerUtil.java index 98be33efd..cd01c37e9 100644 --- a/archiva-modules/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/ArchivaNexusIndexerUtil.java +++ b/archiva-modules/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/ArchivaNexusIndexerUtil.java @@ -19,23 +19,24 @@ package org.apache.maven.archiva.common.utils; * under the License. */ -import java.util.Arrays; -import java.util.List; - import org.apache.maven.index.context.IndexCreator; import org.apache.maven.index.creator.JarFileContentsIndexCreator; import org.apache.maven.index.creator.MavenPluginArtifactInfoIndexCreator; import org.apache.maven.index.creator.MinimalArtifactInfoIndexCreator; +import org.apache.maven.index.creator.OSGIArtifactIndexCreator; + +import java.util.Arrays; +import java.util.List; /** - * ArchivaNexusIndexerUtil - * + * ArchivaNexusIndexerUtil */ public class ArchivaNexusIndexerUtil { - public static final List FULL_INDEX = Arrays.asList( - new MinimalArtifactInfoIndexCreator(), - new JarFileContentsIndexCreator(), - new MavenPluginArtifactInfoIndexCreator() ); - + // FIXME olamy use lookup mechanism from plexus/sisu as here some possible injections can fail ! + + public static final List FULL_INDEX = + Arrays.asList( new MinimalArtifactInfoIndexCreator(), new JarFileContentsIndexCreator(), + new MavenPluginArtifactInfoIndexCreator(), new OSGIArtifactIndexCreator() ); + }