import org.apache.lucene.search.Query;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.factory.ArtifactFactory;
-import org.apache.maven.artifact.repository.ArtifactRepository;
import java.io.IOException;
import java.util.ArrayList;
/**
* This class searches the index for existing artifacts that contains the
* specified query string.
+ *
+ * @plexus.component role="org.apache.maven.repository.indexing.RepositoryIndexSearcher" role-hint="artifact"
*/
public class ArtifactRepositoryIndexSearcher
implements RepositoryIndexSearcher
private static final String VERSION = "version";
- private ArtifactRepository repository;
-
+ /** @plexus.requirement */
private ArtifactFactory factory;
/**
+++ /dev/null
-<!--
- ~ Copyright 2005-2006 The Apache Software Foundation.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<component-set>
- <components>
- <component>
- <role>org.apache.maven.repository.indexing.RepositoryIndex</role>
- <role-hint>artifact</role-hint>
- <implementation>org.apache.maven.repository.indexing.ArtifactRepositoryIndex</implementation>
- </component>
- <component>
- <role>org.apache.maven.repository.indexing.RepositoryIndexSearcher</role>
- <role-hint>artifact</role-hint>
- <implementation>org.apache.maven.repository.indexing.ArtifactRepositoryIndexSearcher</implementation>
- <requirements>
- <requirement>
- <role>org.apache.maven.artifact.factory.ArtifactFactory</role>
- </requirement>
- </requirements>
- </component>
- </components>
-</component-set>