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
This commit is contained in:
Olivier Lamy 2011-08-15 21:27:13 +00:00
parent c3acb6212a
commit f8aa5f9e78
1 changed files with 11 additions and 10 deletions

View File

@ -19,23 +19,24 @@ package org.apache.maven.archiva.common.utils;
* under the License. * under the License.
*/ */
import java.util.Arrays;
import java.util.List;
import org.apache.maven.index.context.IndexCreator; import org.apache.maven.index.context.IndexCreator;
import org.apache.maven.index.creator.JarFileContentsIndexCreator; import org.apache.maven.index.creator.JarFileContentsIndexCreator;
import org.apache.maven.index.creator.MavenPluginArtifactInfoIndexCreator; import org.apache.maven.index.creator.MavenPluginArtifactInfoIndexCreator;
import org.apache.maven.index.creator.MinimalArtifactInfoIndexCreator; 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 class ArchivaNexusIndexerUtil
{ {
public static final List<? extends IndexCreator> FULL_INDEX = Arrays.<IndexCreator>asList( // FIXME olamy use lookup mechanism from plexus/sisu as here some possible injections can fail !
new MinimalArtifactInfoIndexCreator(),
new JarFileContentsIndexCreator(), public static final List<? extends IndexCreator> FULL_INDEX =
new MavenPluginArtifactInfoIndexCreator() ); Arrays.<IndexCreator>asList( new MinimalArtifactInfoIndexCreator(), new JarFileContentsIndexCreator(),
new MavenPluginArtifactInfoIndexCreator(), new OSGIArtifactIndexCreator() );
} }