Since OSSRH-60950, nexus-repository-indexer
provides a way to build a fixed version of the nexus-maven-repository-index.gz
Maven Central Index (ref. Central Index) without module
and pom.512
files but with the right JAR files inside.
The nexus-maven-repository-index.gz
Maven Central Index can either be downloaded from nightly build or built locally.
Check the next paragraphs for both the options.
There's a night build that creates ever day an update version of the nexus-maven-repository-index.gz
Maven Central Index.
From the "Create fixed Maven Central Index" runs list select the latest run.
In the details page download the nexus-maven-repository-index.gz
from the Artifacts
section.
To build the index locally on your host, follow the following steps:
- clone this repo
$ git clone https://github.com/windup/nexus-repository-indexer.git
- move into the
nexus-repository-indexer
folder
$ cd nexus-repository-indexer
- install the parent POM
$ mvn -N install
- install the
indexer
module
$ mvn -f indexer/pom.xml install
- build the index
$ mvn -f data-text/pom.xml package -DskipTests -P update-central-index