public class MavenIndex extends Object
Constructor and Description |
---|
MavenIndex(URL repoUrl,
File repositoryDirectory,
File indexDirectory,
String username,
String password)
Constructs a new object.
|
Modifier and Type | Method and Description |
---|---|
void |
closeCurrentIndexingContext() |
void |
closeIndexSearcher(org.apache.lucene.search.IndexSearcher searcher)
Releases the
IndexSearcher instance. |
Iterable<org.apache.maven.index.ArtifactInfo> |
getArtifactsSince(Date startDate) |
org.apache.maven.index.context.IndexingContext |
getIndexingContext()
Returns the actual
IndexingContext . |
Date |
getLastUpdateLocalRepo()
Returns a timestamp of the last local repository index update.
|
org.apache.lucene.search.IndexSearcher |
newIndexSearcher()
Creates a new
IndexSearcher |
void |
updateIndex()
Update the local index.
|
public MavenIndex(URL repoUrl, File repositoryDirectory, File indexDirectory, String username, String password) throws IOException
repoUrl
- the repository urlrepositoryDirectory
- the directory containing the local repository.indexDirectory
- the directory for local index dataIOException
- error during index creation/updatepublic void closeIndexSearcher(org.apache.lucene.search.IndexSearcher searcher) throws IOException
IndexSearcher
instance.searcher
- the IndexSearcher
IOException
public void closeCurrentIndexingContext() throws IOException
IOException
public Iterable<org.apache.maven.index.ArtifactInfo> getArtifactsSince(Date startDate) throws IOException
IOException
public org.apache.maven.index.context.IndexingContext getIndexingContext()
IndexingContext
.IndexingContext
.public Date getLastUpdateLocalRepo()
public org.apache.lucene.search.IndexSearcher newIndexSearcher() throws IOException
IndexSearcher
IndexSearcher
IOException
public void updateIndex() throws IOException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
IOException
Copyright © 2016 buschmais GbR. All rights reserved.