Apache

Specimen. A proposed redesign of maven.apache.org, not the official Apache Maven site. The official site is maven.apache.org. About this example

Extend Publish to Maven Central

Central Index

Holds for
Not yet checked against Maven 3.9, 3.10 and 4.0
Changed
Source
Edit this page
Wrong?
Report a problem

Central repository provides an index in /.index:

  • full index (nexus-maven-repository-index.gz) is updated weekly,
  • incremental index (nexus-maven-repository-index.<n>.gz + nexus-maven-repository-index.properties).

This index is built using Maven Indexer: see indexer-core documentation for more details on the available fields.

You can use Maven Indexer API (see examples) to use this index with a dedicated API, or use Apache Lucene indexes browsers like Luke or Marple after unpacking the index (see -u CLI option).

Digging Into Central Index with Luke

  • download the Central index: nexus-maven-repository-index.gz

  • download Maven Indexer CLI and unpack the index to raw Lucene index directory:

    java -jar indexer-cli-5.1.1.jar --unpack nexus-maven-repository-index.gz --destination central-lucene-index --type full
    
    
  • download and extract Luke binary tarball and launch it on the Central index with Lucene format:

    luke.sh -ro -index central-lucene-index
    
    

    You need an old Luke version using an old Lucene version, since Maven Indexer 5.5.1 uses Lucene 3.6.2: for this tutorial, we chose Luke version 4.10.4, but you may choose another version.

    But with more recent Maven Indexer releases, more recent Lucene version have been used: see Maven Indexer dependencies.