[MRM-1025] remove unused dependencies

git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@888675 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2009-12-09 02:07:46 +00:00
parent 9975401b34
commit 830fa7a4a3
2 changed files with 5 additions and 14 deletions

View File

@ -38,10 +38,6 @@
<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>

View 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." );