zyxue
zyxue

Reputation: 8888

Difference between search.maven.org and mvnrepository.com

What's the difference between https://search.maven.org/ and https://mvnrepository.com/?

Upvotes: 24

Views: 7627

Answers (2)

Captain Man
Captain Man

Reputation: 7705

Note: As of some point on or before 2024-09-11 it seems https://central.sonatype.com/search is now the official search because https://search.maven.org redirects to https://central.sonatype.com/?smo=true I assume that "smo" stands for search.maven.org. I cannot find an official notice of this change, but am open to one being edited into this answer if one is found.


This answer is very in-depth and likely to answer all of your questions. It was true that search.maven.org was the official search engine.

One thing that mvnrepository.com did better (because search.maven.org did not do it at all) is tell you what libraries are popular. For example, see here that JUnit is the most popular with over 121,000 uses! This can be a useful feature for developers who are hesitant to add dependencies to their projects because they don't want their consumers to have to pull in yet another dependency. The newer https://central.sonatype.com/search shows how many projects depend on a dependency but does not show popularity rankings nor offer sorting by usage.

For example, if you were considering pulling in org.apache.commons:commons-lang3 then you may feel better knowing that it is the 6th most popular library overall (and 2nd most popular "core utility"). It is more likely that your consumers are using this library already than something else.

Of course that's not the most scientific thing but it's still a cool feature that is unique to it.

Upvotes: 5

khmarbaise
khmarbaise

Reputation: 97447

search.maven.org is the official central search engine of Central Repository handled and very well maintained by

Whereas the part https://repo.maven.apache.org/maven2/ is the real Central repository (distributed world wide via CDN) which is being used by default by Apache Maven, Gradle etc.

mvnrepository.com is a search engine (not always up to date) and sometimes misused as a repository, which does not work because it's only a search engine. The site says it is maintained by Twitter user @frodriguez whose profile identifies them as Fernando Rodriguez Olivera.

Upvotes: 28

Related Questions