Thursday, 16 January 2014

Nexus REST interface

Make sure you have the REST API plugin:
<nexus_root>/nexus/index.html#plugin_console

check the documentation:
/nexus/nexus-restlet1x-plugin/default/docs/index.html

start using:
/nexus/service/local/artifact/maven?g=<group>&a=<artifact>&v=LATEST&r=<repo_id>

I did this to learn how nexus knows which artifact version is the latest. It checks the version NUMBER.

references:
http://blog.sonatype.com/2012/07/learning-the-nexus-rest-api-read-the-docs-or-fire-up-a-browser/#.UteFw561bFA


No comments:

Post a Comment