artifactContextProducer = plexusSisuBridge.lookup( ArtifactContextProducer.class );
+ defaultManagedRepositoryAdmin.setMavenIndexerUtils( mavenIndexerUtils );
+ defaultManagedRepositoryAdmin.setIndexer( nexusIndexer );
+
config = new Configuration();
config.addManagedRepository( createRepositoryConfig( TEST_REPO_1 ) );
config.addManagedRepository( createRepositoryConfig( TEST_REPO_2 ) );
if ( !indexDirectory.isAbsolute() )
{
indexDirectory = new File( repositoryDirectory, repository.getIndexDirectory() );
- repository.setIndexDirectory( indexDirectory.getAbsolutePath() );
}
+ repository.setIndexDirectory( indexDirectory.getAbsolutePath() );
}
else
{
if ( !repositoryDirectory.isAbsolute() )
{
indexDirectory = new File( repositoryDirectory, ".indexer" );
- repository.setIndexDirectory( indexDirectory.getAbsolutePath() );
}
+ repository.setIndexDirectory( indexDirectory.getAbsolutePath() );
}
if ( !indexDirectory.exists() )
{
this.mavenIndexerUtils = mavenIndexerUtils;
}
+
+ public NexusIndexer getIndexer()
+ {
+ return indexer;
+ }
+
+ public void setIndexer( NexusIndexer indexer )
+ {
+ this.indexer = indexer;
+ }
}