Hi Milos,
I'm not sure about those 3 indices. Is there a reason you would separate
them as such? Currently, they are all one, so you can search across all
3 types and get a consistent ranking.
What we've done is created a full index and a minimal one (just md5,
filename, id). The latter is designed for the IDEs, and is enough to do
dependency selection. If you need to search the other info, it might be
best to manage the local repository index and just make sure the
artifacts are local first.
The index is a directory with a number of files, so you will probably
want to grab a zip. The current standard is .index and .minimal-index in
the root of the repository (but its configurable).
The repository webapp will be responsible for maintaining the index.
That is pretty much in place now (though still needs some bugfixes and
correction of ineffeciencies).
WDYT?
- Brett
On 22/07/2006 6:41 PM, Milos Kleint wrote:
Hello,
i've recently added maven repository indexing features to the netbeans
maven support. I index the local repository. I query it for
artifactsId/groupId for code-completion in pom.xml, for achetypes when
creating new project. Will also be used for adding dependecies and
general searching features.
a natural next step is to include repome repository content as well,
however the question is how to get it's index. One way would be
probably to distribute the index with the netbeans modules and create
the index manually once in a while. Of course it will be often out of
synch.
Another option is that each repository exposes the index at a
predefined place and one could retrieve it through wagon. Then it
would be the repository's responsibility to update the index when new
artifacts arrive and the client code would be responsible for updating
the local cached copy regularly.
Here goes the proposal:
let's have
1- .artifactIndex/ folder for the Artifact index
2- .pomindex/ for Pom index (it would be nice if the pom index
contained completely resolved models with injected parent pom's
content, for details see http://jira.codehaus.org/browse/MRM-121
3- .metadataIndex for indexing metata.
I'm not entirely sure on the content of the folders, will zipping it
up help for download size?
Where would such a remote repository indexing code reside? the maven
repository webapp?
Regards
Milos
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Apache Maven - http://maven.apache.org/
Better Builds with Maven - http://library.mergere.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]