Ask Your Question
0

REST API of nexus.opendaylight.org

asked 2016-07-20 05:15:52 -0700

KushalKumar gravatar image

Hi,

I have an activity where I have to find the availability of a plugin/jar of a specific version from the nexus repository of Opendaylight.

Since there are too many jars, I need to know if NEXUS exposes any REST API for this purpose. We have a UI (link text) for this purpose, but feeding in artifactID,groupID and version for each jar will become a cumbersome task.

Please let me know if anybody has any info on that.

Regards, Kushal Kumar TCS, Gurgaon

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-07-20 08:09:29 -0700

Linux Foundation Staff

The Nexus webUI only uses REST to communicate with the backend process. You can easily inspect what the webUI is doing if you want, or do some googling on Sonatype Nexus REST.

Finally, if you already know the basic coordinates of the objects you're looking for, there is a maven-metadata.xml file that is at the top of each groupID/artifactID location in the repositories that lists out all of the versions for a particular artifact, including the most current one. For instance using the groupID and artifactID you searched for in your example and looking in just the releases repository you'll find this metadata file.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2016-07-20 05:15:52 -0700

Seen: 16 times

Last updated: Jul 20 '16