diff options
author | Martin Stockhammer <martin_s@apache.org> | 2018-03-30 19:37:47 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2018-03-30 19:37:47 +0200 |
commit | f7facffea70618c497584943f0864dad808a79af (patch) | |
tree | 23d265a8138ce74a1362e0a64de2079f52d57584 /archiva-modules | |
parent | c424149d1cd77dc39b4a87388afabab44fce69f4 (diff) | |
download | archiva-f7facffea70618c497584943f0864dad808a79af.tar.gz archiva-f7facffea70618c497584943f0864dad808a79af.zip |
Removing nexus indexer from startup
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/ArchivaStartup.java | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/ArchivaStartup.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/ArchivaStartup.java index 2863daa05..e3b8fd846 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/ArchivaStartup.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/ArchivaStartup.java @@ -24,7 +24,6 @@ import org.apache.archiva.redback.components.scheduler.DefaultScheduler; import org.apache.archiva.redback.components.taskqueue.Task; import org.apache.archiva.redback.components.taskqueue.execution.ThreadedTaskQueueExecutor; import org.apache.archiva.scheduler.repository.DefaultRepositoryArchivaTaskScheduler; -import org.apache.maven.index.NexusIndexer; import org.apache.maven.index.context.IndexingContext; import org.quartz.SchedulerException; import org.springframework.web.context.WebApplicationContext; @@ -51,8 +50,6 @@ public class ArchivaStartup private DefaultRepositoryArchivaTaskScheduler repositoryTaskScheduler; - private NexusIndexer nexusIndexer; - @Override public void contextInitialized( ServletContextEvent contextEvent ) { @@ -70,7 +67,6 @@ public class ArchivaStartup tqeIndexing = wac.getBean( "taskQueueExecutor#indexing", ThreadedTaskQueueExecutor.class ); - nexusIndexer = wac.getBean( NexusIndexer.class ); try { @@ -142,18 +138,6 @@ public class ArchivaStartup //applicationContext. } - // closing correctly indexer to close correctly lock and file - for ( IndexingContext indexingContext : nexusIndexer.getIndexingContexts().values() ) - { - try - { - indexingContext.close( false ); - } - catch ( Exception e ) - { - servletContext.log( "skip error closing indexingContext " + e.getMessage(), e ); - } - } } |