Ah, OK, so that only works with local repositories, and will scan the
entire repo in one go. I need to be able to work against remote
repositories and perform incremental discovery (think tree view, loading
only as much as necessary to display each sub-tree on node expansion).
I think there's code here I can steal though :-) And if I can figure out
how to meet my requirements in a way that fits, I'll try to offer some
extensions of the existing m-r-d stuff.
L.
Laurie Harper wrote:
Brett Porter wrote:
Take a look at the repository-manager code in SVN, specifically
maven-repository-discovery.
That sounds promising, I hadn't come across that. How come it's in
/maven, not /maven/components? Maybe that'll become clear once I finish
checking it out and have a look at the code...
What type of browser are you trying to build - a web client?
Nope, an IDE plugin (Maven2 support for IDEA) :-)
L.
- Brett
Laurie Harper wrote:
Does M2 have any APIs for repository navigation and artifact discovery?
I'm trying to create a repository browser which presents a tree view,
which is easy with M1's 'flat' layout, but with M2's hierarchical layout
it's a bit trickier...
Specifically, I don't immediately see a way of figuring out whether a
directory represents (part of) a group ID or an artifact ID until I look
at its child entries, possibly grand-child entries too.
It occurs to me that Maven may already abstract all the logic for doing
this transparently across both repository layout formats... Am I in
luck? :-)
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]