This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 240939 - include repository name(s) in maven repository search results
Summary: include repository name(s) in maven repository search results
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P4 normal (vote)
Assignee: Tomas Stupka
Depends on:
Reported: 2014-01-24 18:18 UTC by athompson
Modified: 2016-07-07 16:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

multiple indistinguishable results (128.80 KB, image/png)
2014-01-24 19:03 UTC, athompson

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2014-01-24 18:18:37 UTC
When searching for artifacts in the IDE's registered Maven repositories (by selecting "find" in the Maven Repositories context menu): In the generated "search results" node, there is no indication of what repo(s) contain the listed artifacts. This information is very useful for deciding what artifact version to include as a dependency.

One way to implement this would be to add the repo names as child nodes underneath the individual artifact versions. Their tooltips should contain the repo's ID and URL in case of ambiguous names. A big advantage of this approach is that you could replicate the "Add as Dependency" context menu item on these child nodes as well; selecting it would add that specific repo to the pom file if the pom file does not already contain a repo which contains the artifact.
Comment 1 athompson 2014-01-24 19:01:44 UTC
This should be a defect because currently, if the same artifact/version exists in multiple repos, the search results show multiple indistinguishable and often identical nodes, which is confusing (see screenshot). I would expect that even simply adding the repo names to the existing nodes (probably the easiest way to resolve this issue) would still result in some confusion and would make the results list unnecessarily long, but that's your call.

Another consideration with the solution suggested in the original comment is that the source/javadoc overlays should also be moved to the child nodes.
Comment 2 athompson 2014-01-24 19:03:01 UTC
Created attachment 144350 [details]
multiple indistinguishable results
Comment 3 Milos Kleint 2014-02-18 10:13:59 UTC

repository value is now added to tooltip, too late for any bigger ui changes.

additionally, the results are now processed and any duplicate "local" results are removed in favour of their remote counter parts. That's the most common source of duplicates. However same bits coming from 2 remote indexes are still to be shown as 2 nodes.
Comment 4 Quality Engineering 2014-02-19 02:45:07 UTC
Integrated into 'main-silver', will be available in build *201402190001* on (upload may still be in progress)

User: Milos Kleint <>
Log: #240939 add repository to the tooltip and remove local repository items that are present in other repositories. That gets rid of the most common duplication of versions.
Comment 5 Martin Balin 2016-07-07 08:39:17 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 6 athompson 2016-07-07 16:32:12 UTC
The tooltip still is there so P4, but it's still annoying to have to drill down then hover to see what should be available at a glance.