All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nexus.nexus-indexer.2.0.4.source-code.overview-summary.html Maven / Gradle / Ivy

There is a newer version: 3.1-M1
Show newest version



A Nexus Indexer framework provides functionality to index, search, publish and update indexes
for artifacts in various artifact repositories, including Maven 1 and Maven 2 repositories. 

The following code snippet shows how to obtain NexusIndexer, IndexUpdater and IndexPacker components from the Plexus container or from the MavenEmbedder instance.

  MavenEmbedder embedder;

  // get NexusIndexer component from Plexus
  PlexusContainer plexus = embedder.getPlexusContainer();

  NexusIndexer indexer = (NexusIndexer) plexus.lookup(NexusIndexer.class);
  IndexUpdater updater = (IndexUpdater) plexus.lookup(IndexUpdater.class);
  IndexPacker packer = (IndexPacker) plexus.lookup(IndexPacker.class);
See the NexusIndexer, IndexUpdater and IndexPacker documentation for more details how to work with these classes.




© 2015 - 2024 Weber Informatics LLC | Privacy Policy