]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1025] remove unused dependencies
authorBrett Porter <brett@apache.org>
Wed, 9 Dec 2009 02:07:46 +0000 (02:07 +0000)
committerBrett Porter <brett@apache.org>
Wed, 9 Dec 2009 02:07:46 +0000 (02:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@888675 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml
archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java

index 3d0d77f22a2f5b73d1de56723c2f3498697bef72..928534dfc602fa44128b4aa8bf39a75f2b36650a 100644 (file)
       <groupId>org.apache.archiva</groupId>
       <artifactId>archiva-consumer-api</artifactId>
     </dependency>
-    <dependency>
-      <groupId>org.apache.archiva</groupId>
-      <artifactId>archiva-repository-layer</artifactId>
-    </dependency>
     <dependency>
       <groupId>org.apache.archiva</groupId>
       <artifactId>archiva-scheduler-api</artifactId>
index be141b307cee01dba844f96d80cfa9dcd08260f9..836fa6a8e64ad75534974aff503e80bdd667999f 100644 (file)
@@ -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." );