[ http://jira.codehaus.org/browse/MRM-121?page=all ]

Brett Porter closed MRM-121.
----------------------------

      Assignee: Brett Porter
    Resolution: Duplicate

> wrong (incomplete) models returned from search
> ----------------------------------------------
>
>                 Key: MRM-121
>                 URL: http://jira.codehaus.org/browse/MRM-121
>             Project: Maven Repository Manager
>          Issue Type: Bug
>          Components: indexing
>    Affects Versions: 1.0-beta-1
>            Reporter: Milos Kleint
>         Assigned To: Brett Porter
>            Priority: Critical
>         Attachments: maven-repository.patch
>
>
> I've started using the trunk of maven repository indexer in the maven support 
> for netbeans.
> my usecases involve querying what groupIds/artifactId are available for a 
> given prefix (for code completion in pom.xml)
>  consider this usecase:
> 1. need to get the list of plugin groupIds. artifact repository is not enough 
> as it's not able to query for packaging correctly. -> use pom repository 
> index.
> 2. feed the repository index with pom models. Need to load the models with 
> MavenProjectBuilder because otherwise the groupId is not declared for most 
> poms unfortunately (as it's declared in the parent pom usually)
> 3. ERROR. when retrieving the hits based on a query that checks the groupIds, 
> the actual result hit's model is created using only Model reader. thus mostly 
> returning null in groupId field.
> patch involves creating a super class for defaultindexsearcher and providing 
> 2 implementations based on what approach was chosen when populating the 
> repository index.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to