mirror of https://github.com/apache/archiva.git
PR: MRM-38
Submitted by: John Tolentino This is the correct patch for the background scheduler. git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@380029 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
550c936a33
commit
d40c649157
|
@ -25,6 +25,11 @@
|
|||
<!-- TODO: actually, just exclude from WAR plugin -->
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-quartz</artifactId>
|
||||
<version>1.0-alpha-2-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<finalName>maven-repository-webapp</finalName>
|
||||
|
|
|
@ -26,6 +26,8 @@ import org.apache.maven.repository.indexing.RepositoryIndexSearchException;
|
|||
import org.apache.maven.repository.indexing.RepositoryIndexingFactory;
|
||||
import org.apache.maven.repository.indexing.DefaultRepositoryIndexSearcher;
|
||||
import org.apache.maven.repository.indexing.query.SinglePhraseQuery;
|
||||
import org.codehaus.plexus.scheduler.Scheduler;
|
||||
import org.codehaus.plexus.scheduler.configuration.SchedulerConfiguration;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.MalformedURLException;
|
||||
|
@ -44,6 +46,11 @@ public class PackageSearchAction
|
|||
|
||||
private String md5;
|
||||
|
||||
/**
|
||||
* @plexus.requirement
|
||||
*/
|
||||
private Scheduler scheduler;
|
||||
|
||||
/**
|
||||
* @plexus.requirement
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue