diff options
author | Olivier Lamy <olamy@apache.org> | 2011-08-15 21:27:13 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2011-08-15 21:27:13 +0000 |
commit | f8aa5f9e7896b1977b28b1acad484c28074902c5 (patch) | |
tree | 6abfbafcd408ddd0b2d652d52cc9049ed30f5600 /archiva-modules/archiva-base/archiva-common/src | |
parent | c3acb6212afcb7cb0899af78bd22f426821f06b7 (diff) | |
download | archiva-f8aa5f9e7896b1977b28b1acad484c28074902c5.tar.gz archiva-f8aa5f9e7896b1977b28b1acad484c28074902c5.zip |
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
Diffstat (limited to 'archiva-modules/archiva-base/archiva-common/src')
-rw-r--r-- | archiva-modules/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/ArchivaNexusIndexerUtil.java | 21 |
1 files 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<? extends IndexCreator> FULL_INDEX = Arrays.<IndexCreator>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<? extends IndexCreator> FULL_INDEX = + Arrays.<IndexCreator>asList( new MinimalArtifactInfoIndexCreator(), new JarFileContentsIndexCreator(), + new MavenPluginArtifactInfoIndexCreator(), new OSGIArtifactIndexCreator() ); + } |