0

Is there any method to check whether a dependency is latest or not? I am wonder any web site can provide such functionality.

user705414
  • 20,472
  • 39
  • 112
  • 155
  • What do you mean by the latest? Do you mean if the dependency version is newest ? Such thing ? – khmarbaise Apr 28 '12 at 10:23
  • 1
    SO as an excellent thread on this subject : http://stackoverflow.com/questions/30571/how-do-i-tell-maven-to-use-the-latest-version-of-a-dependency –  Apr 28 '12 at 10:30

2 Answers2

1

You can find out the latest version of any maven dependency deployed on Maven Central through search.maven.org

If you are finding any dynamic ways of doing it, I do not know of any except for using aether library provided by Sonatype which can allow you to find out the latest version of a particular library deployed in any repository.

Maven does allow specifying version ranges in the dependency but it goes against philosophy of reproducible builds. I have read on the Maven users list that people discourage this practice.

Kalpak Gadre
  • 6,285
  • 2
  • 24
  • 30
1

If you're trying to find updates to dependencies you've declared in your pom, the maven versions plugin works pretty well:

mvn versions:display-dependency-updates
mvn versions:display-plugin-updates
Tristan
  • 1,077
  • 11
  • 16