Questions tagged [maven-indexer]

Apache Maven Indexer (former Sonatype Nexus Indexer) is the de facto standard for producing indexes of Maven repositories. The indexes are produced and consumed by all major tools in the ecosystem.

The Maven Indexer is a library created by Sonatype Inc. and contributed to the Apache Maven team. It can produce a Lucene Index and carry out queries against it. This packed index can be downloaded from the repository and be used by:

  • Artifact repository managers
    • Check if a remote host contains an artifact, class, etc
    • Check what versions of an artifact exist
    • Resolve dependencies
  • IDE-s
    • To find out which packages contain the class you would like to import
  • Custom tools

See Also

18 questions
15
votes
1 answer

What is in the packed Maven index (nexus-maven-repository-index.gz)?

Where can I find some more details on what is contained in a Maven repository's Maven Index? Where can one find more details on how this all works? I am somewhat familiar with the maven-indexer, but I still have some grey spots... What is the…
carlspring
  • 31,231
  • 29
  • 115
  • 197
13
votes
4 answers

How to parse/unzip/unpack Maven repository indexes generated by Nexus

I have downloaded the indexes generated for Maven Central from http://mirrors.ibiblio.org/pub/mirrors/maven2/dot-index/nexus-maven-repository-index.gz I would like to list the artifacts information from these index files (groupId, artifactId,…
Laurent
  • 14,122
  • 13
  • 57
  • 89
9
votes
2 answers

Purge old indexes from Sonatype Nexus

We're using Sonatype's Nexus 1.9.2.2 for proxying maven repositories. Our problem is that the indexes are eating so much disk space. All our repositories are taking about 25GB space, and growing. For example, this directory has ~4GB of index files…
infinito
  • 1,985
  • 1
  • 15
  • 16
9
votes
3 answers

Nexus - proxy repositories with no indexes?

I'm trying to add a proxy to a public repository (specifically camel-extra). However, I get the following error in my Nexus logs: Cannot fetch remote index for repository camel-extra and then further down: The remoteURL we requested does not exists…
Roy Truelove
  • 22,016
  • 18
  • 111
  • 153
9
votes
3 answers

How to index a Maven repo without Nexus/Artifactory/etc?

I run my own little Maven repo for some open source. I have no dedicated server so I use a Google code repository, deploy to file system and then commit and push. Works perfect for me. But some Maven tools are looking for a…
Peter Kofler
  • 9,252
  • 8
  • 51
  • 79
7
votes
1 answer

List all artifacts in a Maven repository

Aether has a function to get all versions of a given artifact, as follows: org.sonatype.aether.impl.VersionRangeResolver.resolveVersionRange( RepositorySystemSession session, VersionRangeRequest request ) Is there a aether function to…
David Portabella
  • 12,390
  • 27
  • 101
  • 182
6
votes
3 answers

How does the indexing of Maven artifact repositories work

I would like to understand how the indexing for the artifact repositories like Nexus and Artifactory works. What benefit does it provide? I mean -- how does it help and what is the logic that's used when resolving artifacts? My understanding is that…
carlspring
  • 31,231
  • 29
  • 115
  • 197
4
votes
3 answers

How can I scan a maven repository?

I'm developing a code-sharing plugin for eclipse (for a bachelor thesis project). Currently I'm trying to scan a maven repository and generate a package list. I can download and parse a pom.xml using the maven.model classes, but I can't figure out…
sherif
  • 2,282
  • 19
  • 21
2
votes
1 answer

Why is Eclipse looking for nexus-maven-repository-index.zip when trying to update Nexus indexer?

I am using Eclipse Oxygen, and I have installed Nexus OSS Repository Manager. At Window->Preferences->Maven I have checked Download repository index updates on startup. On startup Eclipse is trying to updated index for Nexus and it takes a while.…
milijan
  • 387
  • 4
  • 12
2
votes
2 answers

1.0.0-SNAPSHOT in two Nexus repositories of one group

Say I have a "public" group in Nexus which contains two repositories "snapshotsA" and "snapshotsB". Both contain versions with the same Maven coordinates, like com.something:artifact:1.0.0-SNAPSHOT. How does Nexus resolve a SNAPSHOT reference? Does…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
2
votes
2 answers

Is it possible to index a legacy repository in nexus?

I'm trying to migrate a large maven1 installation to maven2. I've installed nexus 1.5, created a legacy hosted repository and a m2 virtal view of it. Maven 2 build scripts can access the artifacts without any problem. The only thing which is not…
mglauche
  • 3,344
  • 4
  • 28
  • 31
1
vote
0 answers

Understanding how to read maven central indexes/ and when to use luke tools

I am currently working on a small project to read the entire details of artifacts on maven central. I came across this particular website https://maven.apache.org/repository/central-index.html It lists essentially a 3 step: downloading the…
user1906450
  • 517
  • 1
  • 6
  • 19
0
votes
2 answers

maven index search in jboss plexus error

Hi Im trying to search a maven repository from a seassion bean deployed on jboss this code works on javaSE PlexusContainer plexus = new DefaultPlexusContainer(); NexusIndexer n = (NexusIndexer) plexus.lookup(NexusIndexer.class); …
sherif
  • 2,282
  • 19
  • 21
0
votes
1 answer

Sonatype Nexus can't index IBM Maven repository

We're trying to proxy the IBM Maven repository on our company internal Sonatype Nexus. We added the repository address but the repo has not been populated even under direct request. The Sonatype nexus' "Browse Index" tab is empty whereas the "Browse…
abarisone
  • 3,707
  • 11
  • 35
  • 54
0
votes
1 answer

How to update Nexus index of SpringSource repository

I added two SpringSource repositories to my Nexus instance http://repository.springsource.com/maven/bundles/release http://repository.springsource.com/maven/bundles/external Configuration looks fine but I noticed that the index is always empty. So…
onknows
  • 6,151
  • 12
  • 65
  • 109
1
2