import org.apache.maven.artifact.repository.ArtifactRepositoryFactory;
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
import org.apache.maven.repository.indexing.ArtifactRepositoryIndex;
-import org.apache.maven.repository.indexing.ArtifactRepositoryIndexSearcher;
import org.apache.maven.repository.indexing.RepositoryIndexException;
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 java.io.File;
ArtifactRepositoryIndex index = factory.createArtifactRepositoryIndex( indexPath, repository );
- ArtifactRepositoryIndexSearcher searcher = factory.createArtifactRepositoryIndexSearcher( index );
+ DefaultRepositoryIndexSearcher searcher = factory.createDefaultRepositoryIndexSearcher( index );
artifacts = searcher.search( new SinglePhraseQuery( key, searchTerm ) );