http://repo.maven.apache.org/maven2/.index/Download the latest version of the index file for the repository,
We need to download the following two files (usually at the end of the list)
Nexus-maven-repository-index.gz
Nexus-maven-repository-index.properties
The following is to extract the index file, although the suffix named GZ, but the decompression method is more special,
We need to download a jar package Indexer-cli-5.1.1.jar, we need to unzip the index file through this special jar
Place the above three files (. gz &. Properties &. Jar) in the same directory and run the following command
Java-jar indexer-cli-5.1.1.jar-u nexus-maven-repository-index.gz-d Indexer
After waiting for the program to run, you can discover that many files appear under the indexer folder and place them in the {Nexus-home}/sonatype-work/nexus/indexer/central-ctx directory
Restart Nexus
./nexus Restart
Nexus Repair or update index does not respond to manually configuring Nexus Index