nexus.nexus-indexer.2.0.4.source-code.overview-summary.html Maven / Gradle / Ivy
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