aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2009-12-09 02:07:46 +0000
committerBrett Porter <brett@apache.org>2009-12-09 02:07:46 +0000
commit830fa7a4a38b5558b402e08d1b2979dd09ff241a (patch)
treebefbb998c3415a7f7fc04567919f7dcd874fc326 /archiva-modules
parent9975401b3440ea1715a6dfd0e3e68f74f8ef0ccc (diff)
downloadarchiva-830fa7a4a38b5558b402e08d1b2979dd09ff241a.tar.gz
archiva-830fa7a4a38b5558b402e08d1b2979dd09ff241a.zip
[MRM-1025] remove unused dependencies
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@888675 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml4
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java15
2 files changed, 5 insertions, 14 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml
index 3d0d77f22..928534dfc 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml
@@ -40,10 +40,6 @@
</dependency>
<dependency>
<groupId>org.apache.archiva</groupId>
- <artifactId>archiva-repository-layer</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.archiva</groupId>
<artifactId>archiva-scheduler-api</artifactId>
</dependency>
<dependency>
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java
index be141b307..836fa6a8e 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java
@@ -35,7 +35,6 @@ import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
import org.apache.maven.archiva.consumers.AbstractMonitoredConsumer;
import org.apache.maven.archiva.consumers.ConsumerException;
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer;
-import org.apache.maven.archiva.repository.content.ManagedDefaultRepositoryContent;
import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;
import org.codehaus.plexus.registry.Registry;
@@ -59,8 +58,6 @@ public class NexusIndexerConsumer
private FileTypes filetypes;
- private ManagedDefaultRepositoryContent repositoryContent;
-
private File managedRepository;
private ArchivaTaskScheduler<ArtifactIndexingTask> scheduler;
@@ -69,6 +66,8 @@ public class NexusIndexerConsumer
private List<String> includes = new ArrayList<String>();
+ private ManagedRepositoryConfiguration repository;
+
public NexusIndexerConsumer( ArchivaTaskScheduler<ArtifactIndexingTask> scheduler,
ArchivaConfiguration configuration, FileTypes filetypes )
{
@@ -95,11 +94,9 @@ public class NexusIndexerConsumer
public void beginScan( ManagedRepositoryConfiguration repository, Date whenGathered )
throws ConsumerException
{
+ this.repository = repository;
managedRepository = new File( repository.getLocation() );
- repositoryContent = new ManagedDefaultRepositoryContent();
- repositoryContent.setRepository( repository );
-
try
{
context = ArtifactIndexingTask.createContext( repository );
@@ -120,8 +117,7 @@ public class NexusIndexerConsumer
File artifactFile = new File( managedRepository, path );
ArtifactIndexingTask task =
- new ArtifactIndexingTask( repositoryContent.getRepository(), artifactFile, ArtifactIndexingTask.Action.ADD,
- context );
+ new ArtifactIndexingTask( repository, artifactFile, ArtifactIndexingTask.Action.ADD, context );
try
{
log.debug( "Queueing indexing task + '" + task + "' to add or update the artifact in the index." );
@@ -136,8 +132,7 @@ public class NexusIndexerConsumer
public void completeScan()
{
ArtifactIndexingTask task =
- new ArtifactIndexingTask( repositoryContent.getRepository(), null, ArtifactIndexingTask.Action.FINISH,
- context );
+ new ArtifactIndexingTask( repository, null, ArtifactIndexingTask.Action.FINISH, context );
try
{
log.debug( "Queueing indexing task + '" + task + "' to finish indexing." );