2

With Node.js, Ruby and other languages there seems to be a standard of where you can put your library so that folks can find it with their project / build tools. Is there a standard like that for Java? Is it: http://mvnrepository.com, are there alternatives?

Thanks!

mikebz
  • 3,277
  • 8
  • 37
  • 50
  • I don't know if there is one such ultimate index, but here is another one: http://search.maven.org/. And if maven, then you might check [this question](http://stackoverflow.com/questions/3430423/recommendable-maven-repository-search-engines) – Katona Aug 25 '13 at 16:54
  • I am not sure it fully fulfills your requirement but SpringSource enterprise bundle repository(http://ebr.springsource.com/repository/app/) has similar concept, if you are using OSGi – Pradeep Simha Aug 25 '13 at 16:54
  • Remember that vendors can also run their own repositories. The java.net one used to host "first-party" libraries and is now synced to central. If for some reason you hate yourself enough to work with JBoss technologies, you'll probably need the [JBoss](https://community.jboss.org/wiki/MavenRepository?_sscc=t) one. Maven Central is the de facto standard for publishing stuff but it doesn't necessarily contain everything. – millimoose Aug 25 '13 at 17:40
  • @Katone search.maven.org and mvnrepository.com are two different front ends to the same repository - Maven Central. – Ian Roberts Aug 25 '13 at 21:19

2 Answers2

4

not really.

java doesnt have a concept of a central library index. the closest is the central maven repository, which is not part of "java", but was created for use by maven (a common java build-tool*) based java projects. newer java build systems are also capable of using maven repositories, but there's no single "master repository". apart from maven central (which is by far the largest) a lot of major projects (jboss, for example) run their own repositories.

  • yes, i know i called it a build tool. im simplifying.
radai
  • 23,949
  • 10
  • 71
  • 115
1

The most likely place to find a library/artifact is Maven Central. This is the default repository used by Maven builds. See http://maven.apache.org/guides/introduction/introduction-to-repositories.html for more info. However, you can reference multiple repositories in your build.

http://mvnrepository.com is a nice frontend for artifact discovery, but as far as I can tell doesn't host the artifacts, it just provides pointers to them.

Note that Java and Maven aren't synonymous, but they are tightly coupled, so Maven Central isn't the official "authoritative" artifact store, but it is the ad-hoc standard, and is used by other Java-associated dependency management tools like Ivy or Gradle.

lreeder
  • 12,047
  • 2
  • 56
  • 65