summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--archiva-modules/archiva-base/archiva-indexer/pom.xml8
-rw-r--r--archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/SearchResultHit.java36
2 files changed, 0 insertions, 44 deletions
diff --git a/archiva-modules/archiva-base/archiva-indexer/pom.xml b/archiva-modules/archiva-base/archiva-indexer/pom.xml
index 5eb3c19eb..a91eb5956 100644
--- a/archiva-modules/archiva-base/archiva-indexer/pom.xml
+++ b/archiva-modules/archiva-base/archiva-indexer/pom.xml
@@ -33,14 +33,6 @@
<artifactId>archiva-configuration</artifactId>
</dependency>
<dependency>
- <groupId>org.apache.archiva</groupId>
- <artifactId>archiva-model</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.archiva</groupId>
- <artifactId>archiva-repository-layer</artifactId>
- </dependency>
- <dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
</dependency>
diff --git a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/SearchResultHit.java b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/SearchResultHit.java
index e966f85c4..42b7e61f6 100644
--- a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/SearchResultHit.java
+++ b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/SearchResultHit.java
@@ -19,9 +19,6 @@ package org.apache.archiva.indexer.search;
* under the License.
*/
-import org.apache.commons.lang.StringUtils;
-import org.apache.maven.archiva.model.ArchivaArtifact;
-
import java.util.ArrayList;
import java.util.List;
@@ -51,8 +48,6 @@ public class SearchResultHit
private List<String> versions = new ArrayList<String>();
- private ArchivaArtifact artifact;
-
public String getContext()
{
return context;
@@ -88,37 +83,6 @@ public class SearchResultHit
this.artifactId = artifactId;
}
- public void setArtifact( ArchivaArtifact artifact )
- {
- this.artifact = artifact;
- final String ver = artifact.getVersion();
-
- if ( !this.versions.contains( ver ) )
- {
- this.versions.add( ver );
- }
-
- if ( StringUtils.isBlank( this.groupId ) )
- {
- this.groupId = artifact.getGroupId();
- }
-
- if ( StringUtils.isBlank( this.artifactId ) )
- {
- this.artifactId = artifact.getArtifactId();
- }
-
- if ( StringUtils.isBlank( this.version ) )
- {
- this.version = ver;
- }
- }
-
- public ArchivaArtifact getArtifact()
- {
- return artifact;
- }
-
public String getGroupId()
{
return groupId;