Explorar el Código

generated descriptor


git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@360037 13f79535-47bb-0310-9956-ffa450edef68
tags/archiva-0.9-alpha-1
Brett Porter hace 18 años
padre
commit
fdc941efd5

+ 2
- 0
maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/ArtifactRepositoryIndex.java Ver fichero

@@ -39,6 +39,8 @@ import java.util.zip.ZipFile;
* Class used to index Artifact objects in a specified repository
*
* @author Edwin Punzalan
*
* @plexus.component role="org.apache.maven.repository.indexing.RepositoryIndex" role-hint="artifact" instantiation-strategy="per-lookup"
*/
public class ArtifactRepositoryIndex
extends AbstractRepositoryIndex

+ 3
- 3
maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/ArtifactRepositoryIndexSearcher.java Ver fichero

@@ -24,7 +24,6 @@ import org.apache.lucene.search.IndexSearcher;
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;
@@ -34,6 +33,8 @@ import java.util.List;
/**
* 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
@@ -46,8 +47,7 @@ public class ArtifactRepositoryIndexSearcher

private static final String VERSION = "version";

private ArtifactRepository repository;

/** @plexus.requirement */
private ArtifactFactory factory;

/**

+ 0
- 35
maven-repository-indexer/src/main/resources/META-INF/plexus/components.xml Ver fichero

@@ -1,35 +0,0 @@
<!--
~ 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>

Cargando…
Cancelar
Guardar