<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sonatype Blog &#187; ruby</title>
	<atom:link href="http://blog.sonatype.com/people/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sonatype.com/people</link>
	<description>Sonatype is transforming software development with tools, information and services that enable organizations to build better software, faster, using open-source components.</description>
	<lastBuildDate>Tue, 18 Jun 2013 15:30:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Taking Repos Offline/Online via the Nexus REST API</title>
		<link>http://blog.sonatype.com/people/2010/04/taking-repos-offlineonline-via-the-nexus-rest-api/</link>
		<comments>http://blog.sonatype.com/people/2010/04/taking-repos-offlineonline-via-the-nexus-rest-api/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 06:00:42 +0000</pubDate>
		<dc:creator>Tim O'Brien</dc:creator>
				<category><![CDATA[Nexus]]></category>
		<category><![CDATA[Sonatype]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.sonatype.com/people/?p=5104</guid>
		<description><![CDATA[This post runs through a simple Ruby script that manipulates the offline/online status of hosted Nexus repositories. Such a script would be useful if you need to manipulate the storage of a repository while Nexus is running. Assume you have a script that needs to backup the storage directory of all of your hosted directories [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.sonatype.com/people/wp-content/uploads/2010/01/nexus-small.png"><img class="alignright size-full wp-image-3683" title="nexus-small" src="http://www.sonatype.com/people/wp-content/uploads/2010/01/nexus-small.png" alt="" width="250" height="62" /></a>This post runs through a simple Ruby script that manipulates the offline/online status of hosted Nexus repositories.    Such a script would be useful if you need to manipulate the storage of a repository while Nexus is running.  Assume you have a script that needs to backup the storage directory of all of your hosted directories once a night. If you wanted to make sure that your repository isn&#8217;t altered in the middle of a backup, you would put each hosted repository out of service before the backup job ran.  After the job completed, you would put all of your hosted servers back into service.</p>

<p>While you could do this via the Nexus UI, this wouldn&#8217;t help your automated nightly backup script.   For this script to be easy to run, you&#8217;ll need to script Nexus via the REST interface.   With the Nexus 1.6 release, we&#8217;ve released <a href="https://grid.sonatype.org/ci/view/Nexus/job/Nexus/label=ubuntu/ws/trunk/nexus/nexus-rest-api/target/classes/docs/index.html">full documentation of the Nexus REST services available</a> in every Nexus installation (<a href="https://grid.sonatype.org/ci/view/Nexus/job/Nexus/label=ubuntu/ws/trunk/nexus/nexus-rest-api/target/classes/docs/index.html">REST doc</a>).   Continue reading for an example of how to interact with, authenticate, and manipulate a Nexus instance via the REST APIs.
<span id="more-5104"></span></p>

<p>The following script is written in Ruby and uses the <a href="http://www.ruby-doc.org/stdlib/libdoc/rexml/rdoc/index.html">REXML</a> XML processor and the <a href="http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html">Net:HTTP</a> library.  Both of these libraries are available in the Ruby standard library.   I tested these Ruby scripts using a standard Ruby 1.8.7 distribution.  If you want to try these scripts out on your own, they will run in any standard Ruby interpreter without requiring any extra RubyGems.</p>

<p>Here&#8217;s the script, we&#8217;ll walk through some of the highlights after the source:</p>

<script src="http://gist.github.com/374144.js?file=Online+Script"></script>

<p>So, what&#8217;s going on in this script?</p>

<ul>
    <li><strong>Lines 7-15:</strong> Define some simple variables like host, port, the root URL of Nexus.   We also define the status string &#8220;OUT_OF_SERVICE&#8221;.   If we ran this script and then wanted to bring all hosted repositories back online, we would change this string to &#8220;IN_SERVICE&#8221;.</li>
    <li><strong>Lines 17-21:</strong> Get a list of all repositories as an XML document and parse it.   All Nexus REST services can return either XML or JSON, the default response if no &#8220;Content-type&#8221; header is present in the request is &#8220;application/xml&#8221;.   This is a simple HTTP GET which does not require any authentication. You can find detailed documentation for the /service/local/repositories service <a href="https://grid.sonatype.org/ci/view/Nexus/job/Nexus/label=ubuntu/ws/trunk/nexus/nexus-rest-api/target/classes/docs/rest.repositories.html">here</a>.</li>
    <li><strong>Line 24:</strong> We&#8217;re only interested in manipulating hosted repositories.    This line applies the XPath query &#8220;//repositories-item[repoType='hosted']&#8221; to the XML document and passed matching nodes to a large block that operates on each matching repository element.</li>
    <li><strong>Lines 26-29:</strong> Just print out the id of each repository and the URL.</li>
    <li><strong>Lines 31-34:</strong> Retrieve the status of a repository using the repository identifier.   Again, this is a simple HTTP GET that does not require any authentication information. It returns an XML doc that describes the current status of the repository.   Detailed documentation for the &#8220;/service/local/repositories/{repositoryId}/status&#8221; can be found <a href="https://grid.sonatype.org/ci/view/Nexus/job/Nexus/label=ubuntu/ws/trunk/nexus/nexus-rest-api/target/classes/docs/rest.repositories.repositoryId.status.html">here</a>.</li>
    <li><strong>LInes 36-41:</strong> Now here&#8217;s where it gets a bit fancy.   The REST call to get the status was an HTTP GET, which returns an XML document.   The REST call to set the status is an HTTP PUT, which accepts the same XML document.   To set the repository status, we&#8217;re going to use the XML returned by a GET call to the status service and just change the &#8220;localStatus&#8221; element to either &#8220;IN_SERVICE&#8221; or &#8220;OUT_OF_SERVICE&#8221;.   The statement on line 38, simply sets the value of this element in the XML document which was returned by the previous GET.</li>
    <li><strong>Lines 43-50:</strong> Changing the status of a repository requires the proper privileges.  For this call, we&#8217;ll need to supply the credentials set in the initial portion of the script.    We will also need to make an HTTP PUT call and pass the XML document for repository status as the request body.    While Nexus REST defaults to an XML response if no Content-Type is specified for simple HTTP GET calls, our HTTP PUT call to the repository status service must set the request&#8217;s &#8220;Content-Type&#8221; header to &#8220;application/xml&#8221; for status to be updated.   The request body is set to the XML, which was modified on line 38, and the request is made on line 50.</li>
</ul>

<p>That&#8217;s it.  While this particular script isn&#8217;t much, it should provide a template for those of you who are interested in starting to automate common tasks via the Nexus REST API.</p>

<p><strong>OPEN CHALLENGE:</strong> This this script is too verbose?   Create your own Gist on GitHub.com and point to it in the comments.   I&#8217;d love to see what other people could do with this sample.  Expect a lot of follow-up posts to this, as we&#8217;re really interested in developing a large library of scripts for people to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sonatype.com/people/2010/04/taking-repos-offlineonline-via-the-nexus-rest-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Searching with the Sonatype Nexus REST API: Ruby</title>
		<link>http://blog.sonatype.com/people/2008/11/searching-with-the-nexus-rest-api-ruby/</link>
		<comments>http://blog.sonatype.com/people/2008/11/searching-with-the-nexus-rest-api-ruby/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 16:11:49 +0000</pubDate>
		<dc:creator>Tim O'Brien</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Nexus]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://blogs.sonatype.com/people/book/?p=255</guid>
		<description><![CDATA[When you search for artifacts using http://repository.sonatype.org, the browser is querying the Nexus repository using a REST API.   In this post, I&#8217;m going to show you some simple Ruby scripts which you can use to search the Maven repository without loading up the Nexus web interface.  You might find these scripts more convenient and more [...]]]></description>
				<content:encoded><![CDATA[<p><img class="alignright size-thumbnail wp-image-262" src="http://cms.sonatype.com/wordpress/wp-content/uploads/2008/11/scripting-nexus-ruby.png" alt="" width="103" height="102" />When you search for artifacts using <a href="http://repository.sonatype.org">http://repository.sonatype.org</a>, the browser is querying the Nexus repository using a REST API.   In this post, I&#8217;m going to show you some simple Ruby scripts which you can use to search the Maven repository without loading up the Nexus web interface.  You might find these scripts more convenient and more customizable, and you should feel free to copy and modify them for your own use.</p>

<p>The following scripts are in Ruby and they use the <a href="http://www.ruby-doc.org/stdlib/libdoc/rexml/rdoc/index.html">REXML</a> XML processor and the <a href="http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html">Net:HTTP</a> library.  Both of these libraries are available in the Ruby standard library.   I tested these Ruby scripts using the latest <a href="http://jruby.codehaus.org/">JRuby</a> release.  If you want to try these scripts out on your own, they will run in any standard Ruby interpreter without requiring any extra RubyGems.<span id="more-302"></span></p>

<h2>The Nexus REST API</h2>

<p>The UI of Nexus is written in ExtJS and it makes heavy use of AJAX callbacks to REST services.  In fact, if you load up Nexus in a tool like Firebug, an extension for Firefox which allows you to trace all network activity, you will see that almost every action in Nexus triggers a call to a REST service.  We&#8217;re going to focus on just two services in this post: list repositories and searching for artifacts, but you should know that there are hundreds of things you can do to Nexus via the various REST interfaces that are available.  In fact, you could create a custom UI tailored to your own needs that interfaces with Nexus via this REST backend.    In addition to the REST services in the core Nexus installation, you can extend Nexus and add in your own REST services via a Nexus plugin.  The Nexus UI is completely decoupled from the set of services Nexus provides, and the services which Nexus provides can be extended.</p>

<p><a href="http://cms.sonatype.com/wordpress/wp-content/uploads/2008/11/nexus-rest-arch.png"><img class="aligncenter size-full wp-image-263" src="http://cms.sonatype.com/wordpress/wp-content/uploads/2008/11/nexus-rest-arch.png" alt="" width="386" height="201" /></a>The Nexus REST Services are <a href="https://docs.sonatype.com/display/Nx/Nexus+Rest+API">documented here</a>.  In this post, we&#8217;re going to be writing scripts that hit the public instance of Sonatype Nexus at <a href="http://repository.sonatype.org">http://repository.sonatype.org</a>, our REST URLs are going to look something like this: <a href="http://repository.sonatype.org/service/local/data_index?q=maven">http://repository.sonatype.org/service/local/data_index?q=maven</a>.  If you were attempting to hit the services on your local Nexus installation, your REST URL would look more like this: http://localhost:8081/nexus/service/local/data_index?cn=HibernateDaoSupport.   These REST URLs follow the pattern:  &#8220;http://{host}:{port}/{context}/service/{instance}/{service}?{query_params}&#8221; where the {instance} will almost always be &#8220;local&#8221;.</p>

<p>If you would like to download the sample scripts in this blog post, you can download this ZIP file which contains four Ruby scripts: <a href="http://books.sonatype.com/tutorial-files/nexus-rest-ruby.zip">http://books.sonatype.com/tutorial-files/nexus-rest-ruby.zip</a></p>

<h2>Listing Repositories</h2>

<p>The first script simply lists all of the repositories in a Nexus installation.  Here it is:</p>


<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'net/http'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'rexml/document'</span>
<span style="color:#9966CC; font-weight:bold;">include</span> REXML
&nbsp;
url = <span style="color:#996600;">'http://repository.sonatype.org/service/local/repositories'</span>
resp = <span style="color:#6666ff; font-weight:bold;">Net::HTTP</span>.<span style="color:#9900CC;">get_response</span><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#CC00FF; font-weight:bold;">URI</span>.<span style="color:#9900CC;">parse</span><span style="color:#006600; font-weight:bold;">&#40;</span> url <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
doc = <span style="color:#6666ff; font-weight:bold;">REXML::Document</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span> resp.<span style="color:#9900CC;">body</span> <span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
XPath.<span style="color:#9900CC;">each</span><span style="color:#006600; font-weight:bold;">&#40;</span> doc, <span style="color:#996600;">&quot;//repositories-item&quot;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>r<span style="color:#006600; font-weight:bold;">|</span>
  <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;#{r.elements[&quot;</span>name<span style="color:#996600;">&quot;].text}(#{r.elements[&quot;</span>id<span style="color:#996600;">&quot;].text})&quot;</span>
  <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;<span style="color:#000099;">\t</span>&quot;</span> <span style="color:#006600; font-weight:bold;">+</span> r.<span style="color:#9900CC;">elements</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">&quot;resourceURI&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#9900CC;">text</span> <span style="color:#006600; font-weight:bold;">+</span> <span style="color:#996600;">&quot;<span style="color:#000099;">\n</span><span style="color:#000099;">\n</span>&quot;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>


<p>This script sets the pattern for the scripts to follow.  We construct a URL in the script (a more general script would read this from a config file), then we make the request using Net::HTTP and we parse the results with REXML by passing it to the Document constructor.  At this point, I use XPath to select all of the repositories and I print out the name, id, and the URL of the repository as served by Nexus.</p>

<p>This post is simply a pointer to the service and a quick demonstration so I&#8217;m not going to dive into the meaning of every single element in the XML document returned by the repositories service.   If you are interested in see the full set of elements that are available, load up the results of this service in a web browser by click on this: <a href="http://repository.sonatype.org/service/local/repositories">http://repository.sonatype.org/service/local/repositories</a>.</p>

<h2>Performing a &#8220;Quick Search&#8221;</h2>


<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'net/http'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'rexml/document'</span>
<span style="color:#9966CC; font-weight:bold;">include</span> REXML
&nbsp;
url = <span style="color:#996600;">'http://repository.sonatype.org/service/local/data_index?q='</span>
resp = <span style="color:#6666ff; font-weight:bold;">Net::HTTP</span>.<span style="color:#9900CC;">get_response</span><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#CC00FF; font-weight:bold;">URI</span>.<span style="color:#9900CC;">parse</span><span style="color:#006600; font-weight:bold;">&#40;</span> url <span style="color:#006600; font-weight:bold;">+</span> ARGV<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
doc = <span style="color:#6666ff; font-weight:bold;">REXML::Document</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span> resp.<span style="color:#9900CC;">body</span> <span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
XPath.<span style="color:#9900CC;">each</span><span style="color:#006600; font-weight:bold;">&#40;</span> doc, <span style="color:#996600;">&quot;//data/artifact&quot;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>r<span style="color:#006600; font-weight:bold;">|</span>
  <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;#{r.elements[&quot;</span>groupId<span style="color:#996600;">&quot;].text}:#{r.elements[&quot;</span>artifactId<span style="color:#996600;">&quot;].text}:#{r.elem<span style="color:#000099;">\</span>
ents[&quot;</span>version<span style="color:#996600;">&quot;].text}&quot;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>


<p>This script follows the pattern of the previous script to list all repositories with the exception that it reads an argument from the command line.   This script performs a quick search by hitting the <em>data_index</em> service and passing in the <em>q</em> parameter.   This script simply prints out the <em>groupId:artifactId:version</em> of all the artifacts located.</p>

<p>If you would like to see an example of the XML that this service produces click here: <a title="http://repository.sonatype.org/service/local/data_index?q=activemq" href="http://repository.sonatype.org/service/local/data_index?q=activemq">http://repository.sonatype.org/service/local/data_index?q=activemq</a>. In the full results, you&#8217;ll see more information such as the number of search hits available, the resource URL for each artifact found, and the context (or repository) in which the artifact is available.</p>

<h2>Searching by Class Name</h2>


<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'net/http'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'rexml/document'</span>
<span style="color:#9966CC; font-weight:bold;">include</span> REXML
&nbsp;
url = <span style="color:#996600;">'http://repository.sonatype.org/service/local/data_index?cn='</span>
resp = <span style="color:#6666ff; font-weight:bold;">Net::HTTP</span>.<span style="color:#9900CC;">get_response</span><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#CC00FF; font-weight:bold;">URI</span>.<span style="color:#9900CC;">parse</span><span style="color:#006600; font-weight:bold;">&#40;</span> url <span style="color:#006600; font-weight:bold;">+</span> ARGV<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
doc = <span style="color:#6666ff; font-weight:bold;">REXML::Document</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span> resp.<span style="color:#9900CC;">body</span> <span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
XPath.<span style="color:#9900CC;">each</span><span style="color:#006600; font-weight:bold;">&#40;</span> doc, <span style="color:#996600;">&quot;//data/artifact&quot;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>r<span style="color:#006600; font-weight:bold;">|</span>
  <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;#{r.elements[&quot;</span>groupId<span style="color:#996600;">&quot;].text}:#{r.elements[&quot;</span>artifactId<span style="color:#996600;">&quot;].text}:#{r.elem<span style="color:#000099;">\</span>
ents[&quot;</span>version<span style="color:#996600;">&quot;].text}&quot;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>


<p>This script is almost exactly the same as the prior script that performed a quick search.  The difference in this script is that instead of passing the q parameter, this script passes the cn parameter.   Passing the cn parameter causes Nexus to search for artifacts which contain classes that match the given value.   The results are going to look the same as the quick search query script.     To see the XML yourself, search for all artifacts which contain a class named HibernateDaoSupport: <a href="http://repository.sonatype.org/service/local/data_index?cn=HibernateDaoSupport">http://repository.sonatype.org/service/local/data_index?cn=HibernateDaoSupport</a>.</p>

<h2>Performing a GAV Search</h2>


<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'net/http'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'rexml/document'</span>
<span style="color:#9966CC; font-weight:bold;">include</span> REXML
&nbsp;
url = <span style="color:#996600;">&quot;http://repository.sonatype.org/service/local/data_index?g=#{ARGV[0]}&amp;amp;a=#<span style="color:#000099;">\</span>
{ARGV[1]}&amp;amp;v=#{ARGV[2]}&quot;</span>
resp = <span style="color:#6666ff; font-weight:bold;">Net::HTTP</span>.<span style="color:#9900CC;">get_response</span><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#CC00FF; font-weight:bold;">URI</span>.<span style="color:#9900CC;">parse</span><span style="color:#006600; font-weight:bold;">&#40;</span> url <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
doc = <span style="color:#6666ff; font-weight:bold;">REXML::Document</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span> resp.<span style="color:#9900CC;">body</span> <span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
XPath.<span style="color:#9900CC;">each</span><span style="color:#006600; font-weight:bold;">&#40;</span> doc, <span style="color:#996600;">&quot;//data/artifact&quot;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>r<span style="color:#006600; font-weight:bold;">|</span>
  <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;#{r.elements[&quot;</span>groupId<span style="color:#996600;">&quot;].text}:#{r.elements[&quot;</span>artifactId<span style="color:#996600;">&quot;].text}:#{r.elem<span style="color:#000099;">\</span>
ents[&quot;</span>version<span style="color:#996600;">&quot;].text}&quot;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>


<p>This final script takes three command line arguments: groupId, artifactId, version, and it performs a GAV (groupId, artifactId, version) coordinate search over the repository.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sonatype.com/people/2008/11/searching-with-the-nexus-rest-api-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
