On Wed, Jan 14, 2009 at 2:51 PM, Samuel Cox <[email protected]> wrote:

> For example, I'd like to do something like:
>
> Repository repo = new Repository("http://my_repo/basedir";);
> Artifact[] artifacts = repo.searchByGroupId("org.apache.maven")
> for (Artifact art : artifacts) // list dependencies

I don't think what you want is in the Maven code, but rather in of one
of the various repository managers (Archiva, Nexus, etc.).

Here's some sample code for searching a repo hosted by Archiva, using
its xml-rpc interface:

http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-client/src/main/java/org/apache/archiva/web/xmlrpc/client/SampleClient.java

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to