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.
Summary: | PluginIndexManager uses own prebuilt Lucene index, sometimes throws FNFE | ||
---|---|---|---|
Product: | projects | Reporter: | Exceptions Reporter <exceptions_reporter> |
Component: | Maven | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | anebuzelsky, gtzabari, jglick, mburgess, t_yano |
Priority: | P3 | Keywords: | PLAN |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 147311 |
Bug Depends on: | |||
Bug Blocks: | 154108 | ||
Attachments: |
stacktrace
Work in progress |
Description
Exceptions Reporter
2010-05-29 11:56:05 UTC
Created attachment 99642 [details]
stacktrace
All this code was introduced to complete plugin names, apparently. Maybe can be taken from the index instead? Since the index is prebuilt, as a hotfix might be able to just discard the cached value if any problem arises. More generally, the design is poor here. There used to be a bunch of XML files shipped with the IDE listing known plugins and their goals, produced by some script (I have no idea what); this was converted to a binary Lucene index, occasionally updated. The index is now pretty well out of date; for example, it makes no mention of maven-nbm-plugin 3.2, much less the recently released 3.3. Better would be to go through RepositoryQueries, i.e. the regular repository index, which will be nearly current. In particular, MavenPluginArtifactInfoIndexCreator already records FLD_PLUGIN_PREFIX and FLD_PLUGIN_GOALS, which will probably suffice to honor getPluginGoalNames, getPluginGoals, and getPluginsForGoalPrefix. getPluginParameters can likely be accomplished by directly parsing META-INF/maven/plugin.xml from the local copy of the artifact, or perhaps by using MavenPluginManager. getLifecyclePlugins I am less sure about; surely there is some interface in Maven that would work for this purpose, though in the absence of meaningful Javadoc it is hard to tell; LifeCyclePluginAnalyzer looks promising. Created attachment 109176 [details]
Work in progress
core-main #3eeb7a66a819 Integrated into 'main-golden', will be available in build *201107060600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/3eeb7a66a819 User: Jesse Glick <jglick@netbeans.org> Log: #186939: rewrite PluginIndexManager to use the regular Nexus index. *** Bug 200239 has been marked as a duplicate of this bug. *** |