Package org.apache.maven.index.context

Examples of org.apache.maven.index.context.IndexingContext.optimize()


            nexusIndexer.addIndexingContext( contextId, contextId, repo, repoIndexDir, "http://www.apache.org",
                                             "http://www.apache.org/.index", indexCreators );
        indexingContext.setSearchable( true );
        nexusIndexer.scan( indexingContext, false );

        indexingContext.optimize();

        File managedRepository = new File( repoIndex );
        final File indexLocation = new File( managedRepository, ".index" );
        IndexPackingRequest request = new IndexPackingRequest( indexingContext, indexLocation );
        indexPacker.packIndex( request );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.