Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding list of versions available in a Maven repository for a specific plugin?

Given the following repository URL from my pom.xml how can I determine what the latest versions of spring and hibernate are available in the repository? http://repo1.maven.org/maven2

like image 716
Jared Avatar asked Sep 03 '09 15:09

Jared


People also ask

What is versions Maven plugin?

Versions Maven Plugin is a plugin in the maven project used to update the versions of the application/artifact of a project. Each artifact is a single module that has a dependency on other artifacts. Always Latest versions are stable with fixing bugs.

How do I browse a Maven repository?

To browse Maven repositories and to manipulate repository indexes open the Maven Repositories view by selecting Windows, Show View, Other... Once you select Other... Eclipse will display a dialog containing all available views. Select the Maven Repositories view under the Maven folder in the Show View dialog.


1 Answers

Retrieve the maven-metadata.xml file, placed in the artifact directory, e.g. https://repo1.maven.org/maven2/com/sun/media/jai_codec/maven-metadata.xml for an artifact with the groupId com.sun.media and artifactId jai_codec.

<?xml version="1.0" encoding="UTF-8"?>

<metadata>
  <groupId>com.example</groupId>
  <artifactId>project</artifactId>
  <versioning>
    <latest>0.0.5</latest>
    <release>0.0.5</release>

    <versions>
      <version>0.0.3</version>
      <version>0.0.4</version>
      <version>0.0.5</version>
    </versions>
    <lastUpdated>20090725212606</lastUpdated>
  </versioning>

</metadata>
like image 91
Robert Munteanu Avatar answered Sep 25 '22 15:09

Robert Munteanu