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 159098 - Awkward to add optional eager NBMs for a plugin
Summary: Awkward to add optional eager NBMs for a plugin
Status: RESOLVED FIXED
Alias: None
Product: updatecenters
Classification: Unclassified
Component: Pluginportal (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jiri Kovalsky
URL: http://plugins.netbeans.org/PluginPor...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-24 20:55 UTC by Jesse Glick
Modified: 2011-01-19 14:46 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-02-24 20:55:53 UTC
Hudson Maven Bridge (http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=14421) was rejected
for 6.5 by vmanuelramirez with the comments

"Have to make clear the dependency on hudson support plugin. Besides, no deactivate button..."

There is not _supposed_ to be a Deactivate button, because it is an eager module - it is supposed to be included with
the Hudson Support module (http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=2178) and
enabled iff Hudson support and Maven support are both enabled. I would have simply uploaded both NBMs under Hudson
Support, but the Plugin Portal does not offer to let you upload >1 NBM in one entry.

Can this be fixed so that PP matches how Plugin Manager works? I.e. only "visible" modules should be, well, visible in
PP - the "Hudson Maven Bridge" NBM should never appear to the user at all because it is logically contained in the
Hudson Support plugin.
Comment 1 Jiri Kovalsky 2009-02-25 16:52:40 UTC
Victor, Jesse is right. Currently, the Plugin Portal does not feature a possibility to upload multiple NBMs at once and
request verification of only those who are visible and not eager. Hence could you please change your decision and _vote
for_ publishing the Hudson Maven Bridge plugin on the Update Center? Thanks a lot!
Comment 2 Jesse Glick 2009-02-25 19:25:30 UTC
I was only using Victor's comment by way of background. The root problem is in the PP itself. I presume its update
center is fine, but the web presentation should take into consideration how autoload and eager modules work.
Comment 3 Jesse Glick 2011-01-14 15:19:16 UTC
It is crucial that you be allowed to upload multiple NBMs from a suite, generally with one visible "kit". I don't care that much what the web UI shows in this case; when used as an update center it will work correctly.
Comment 4 Jiri Kovalsky 2011-01-14 15:44:00 UTC
Jesse, are you aware that you can also publish ZIP file containing multiple NBM files? If there is a library not to be visible in the Plugin Manager and a module depending on it, just use AutoUpdate-Show-In-Client="false" in the library's module descriptor, ZIP both and publish in the Plugin Portal. It should do the trick in my opinion.
Comment 5 Jesse Glick 2011-01-14 21:38:04 UTC
(In reply to comment #4)
> are you aware that you can also publish ZIP file containing multiple NBM
> files?

Comment #1 said there was not. Has this been changed, i.e. FIXED, since then? There is no indication in the UI ("Update Plugin File:") that this would be so.
Comment 6 Jiri Kovalsky 2011-01-17 10:14:37 UTC
Yes, publishing ZIPs containing NBMs is available for a long time. I apologize Jesse for not mentioning it in my very first comment, but I most probably didn't get the problem fully or was in a hurry.

So, would you agree to close this issue now?
Comment 7 vmanuelramirez 2011-01-17 18:02:30 UTC
(In reply to comment #6)
> Yes, publishing ZIPs containing NBMs is available for a long time. I apologize
> Jesse for not mentioning it in my very first comment, but I most probably
> didn't get the problem fully or was in a hurry.
> 
> So, would you agree to close this issue now?

It's ok for me. The zip looks like a good workaround.
Comment 8 Jesse Glick 2011-01-19 14:40:34 UTC
If the UI is fixed to explain what you can upload then this can be closed.
Comment 9 Jiri Kovalsky 2011-01-19 14:46:06 UTC
Yes, the "Plugin Add Page Step 1" now reads: "If you want to upload a Module Suite (a set of related NBM files), please Zip them into a .zip file and select that file for upload. The .zip file will then be available for download from the netbeans.org website. Do NOT add a folder in the zip file. The files must be at the root level of the .zip file."

Hence I am closing this ticket as fixed. Thanks for your comments guys.