mirror of
https://github.com/apache/archiva.git
synced 2025-02-08 02:59:43 +00:00
remove unused imports and fields
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1196843 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
baaa23f092
commit
a635f44ace
@ -23,7 +23,6 @@
|
|||||||
import org.apache.archiva.admin.model.RepositoryAdminException;
|
import org.apache.archiva.admin.model.RepositoryAdminException;
|
||||||
import org.apache.archiva.admin.model.beans.ManagedRepository;
|
import org.apache.archiva.admin.model.beans.ManagedRepository;
|
||||||
import org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin;
|
import org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin;
|
||||||
import org.apache.archiva.common.plexusbridge.MavenIndexerUtils;
|
|
||||||
import org.apache.archiva.common.plexusbridge.PlexusSisuBridge;
|
import org.apache.archiva.common.plexusbridge.PlexusSisuBridge;
|
||||||
import org.apache.archiva.common.plexusbridge.PlexusSisuBridgeException;
|
import org.apache.archiva.common.plexusbridge.PlexusSisuBridgeException;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
@ -36,7 +35,6 @@
|
|||||||
import org.apache.maven.index.MAVEN;
|
import org.apache.maven.index.MAVEN;
|
||||||
import org.apache.maven.index.NexusIndexer;
|
import org.apache.maven.index.NexusIndexer;
|
||||||
import org.apache.maven.index.artifact.IllegalArtifactCoordinateException;
|
import org.apache.maven.index.artifact.IllegalArtifactCoordinateException;
|
||||||
import org.apache.maven.index.context.IndexCreator;
|
|
||||||
import org.apache.maven.index.context.IndexingContext;
|
import org.apache.maven.index.context.IndexingContext;
|
||||||
import org.apache.maven.index.expr.SourcedSearchExpression;
|
import org.apache.maven.index.expr.SourcedSearchExpression;
|
||||||
import org.apache.maven.index.packer.IndexPacker;
|
import org.apache.maven.index.packer.IndexPacker;
|
||||||
@ -52,7 +50,6 @@
|
|||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ArchivaIndexingTaskExecutor Executes all indexing tasks. Adding, updating and removing artifacts from the index are
|
* ArchivaIndexingTaskExecutor Executes all indexing tasks. Adding, updating and removing artifacts from the index are
|
||||||
@ -75,16 +72,11 @@ public class ArchivaIndexingTaskExecutor
|
|||||||
@Inject
|
@Inject
|
||||||
private PlexusSisuBridge plexusSisuBridge;
|
private PlexusSisuBridge plexusSisuBridge;
|
||||||
|
|
||||||
@Inject
|
|
||||||
private MavenIndexerUtils mavenIndexerUtils;
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private ManagedRepositoryAdmin managedRepositoryAdmin;
|
private ManagedRepositoryAdmin managedRepositoryAdmin;
|
||||||
|
|
||||||
private NexusIndexer nexusIndexer;
|
private NexusIndexer nexusIndexer;
|
||||||
|
|
||||||
private List<? extends IndexCreator> allIndexCreators;
|
|
||||||
|
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
public void initialize()
|
public void initialize()
|
||||||
throws PlexusSisuBridgeException
|
throws PlexusSisuBridgeException
|
||||||
@ -97,7 +89,6 @@ public void initialize()
|
|||||||
|
|
||||||
nexusIndexer = plexusSisuBridge.lookup( NexusIndexer.class );
|
nexusIndexer = plexusSisuBridge.lookup( NexusIndexer.class );
|
||||||
|
|
||||||
allIndexCreators = mavenIndexerUtils.getAllIndexCreators();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void executeTask( Task task )
|
public void executeTask( Task task )
|
||||||
|
@ -20,16 +20,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.archiva.admin.model.beans.ManagedRepository;
|
import org.apache.archiva.admin.model.beans.ManagedRepository;
|
||||||
import org.apache.maven.index.NexusIndexer;
|
|
||||||
import org.apache.maven.index.context.IndexCreator;
|
|
||||||
import org.apache.maven.index.context.IndexingContext;
|
import org.apache.maven.index.context.IndexingContext;
|
||||||
import org.apache.maven.index.context.UnsupportedExistingLuceneIndexException;
|
|
||||||
import org.codehaus.plexus.taskqueue.Task;
|
import org.codehaus.plexus.taskqueue.Task;
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class ArtifactIndexingTask
|
public class ArtifactIndexingTask
|
||||||
implements Task
|
implements Task
|
||||||
|
Loading…
x
Reference in New Issue
Block a user