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 220002 - Document offline installation procedure for FindBugs
Summary: Document offline installation procedure for FindBugs
Status: RESOLVED WONTFIX
Alias: None
Product: usersguide
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: AlyonaStashkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-12 12:27 UTC by pjdm
Modified: 2012-10-31 11:15 UTC (History)
0 users

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 pjdm 2012-10-12 12:27:30 UTC
For systems that have no Internet access, FindBugs cannot be installed. Therefore, FindBugs is unusable, and no workaround exists.

Please document a procedure for installing FindBugs offline to provide the same functionality as systems that can do the install from the Internet.
Comment 1 Jiri Prox 2012-10-12 12:47:21 UTC
The process is the same as for any other additional plugin
1) open the catalog xml and find the URL of requested modules
   - to run find bug we need Findbugs library wrapper and Findbugs module
   - for example for 7.2.1 the links are:

http://dlc.sun.com.edgesuite.net/netbeans/updates/7.2.1/uc/final/certified/modules/extra/org-netbeans-modules-findbugs.nbm

http://dlc.sun.com.edgesuite.net/netbeans/updates/7.2.1/uc/final/certified/modules/extra/org-netbeans-libs-findbugs.nbm

2) on computer with internet access download the modules
3) copy to computer w/o internet access
4) install downloaded modules
Comment 2 pjdm 2012-10-14 03:32:19 UTC
These instructions are insufficient. The org-netbeans-libs-findbugs NBM contains references to required JARS, rather than the JARs themselves. Therefore an attempt to install the downloaded NBMs produces the error:

There were some problems while storing FindBugs Library Wrapper.
Cause: Cannot resolve external reference to netbeans/modules/ext/bcel-2.0.0.jar.external

and the offline installation fails.
Comment 3 AlyonaStashkova 2012-10-24 09:34:34 UTC
Adding a link to the Installing Plugins Offline help topic  - http://hg.netbeans.org/main/raw-file/a384178489db/usersguide/javahelp/org/netbeans/modules/usersguide/configure/modules/updateoffline.html

Please let me know if a more detailed wiki page on FindBugs offline installation specifically is required.
Comment 4 pjdm 2012-10-24 09:40:43 UTC
Did you try this?

The instructions on that page are essentially a repeat of comment 1. See comment 2.

A more detailed wiki page on FindBugs offline installation specifically is required.
Comment 5 Jiri Prox 2012-10-30 14:54:56 UTC
pjdm you're right, this steps works only when there is maven repository already populated with required libraries
Comment 6 AlyonaStashkova 2012-10-30 19:48:22 UTC
Closing the issue as resolved wontfix.
Comment 7 pjdm 2012-10-31 09:04:38 UTC
Why is this resolved wontfix? In an off-line situation the FindBugs mechanism built into NetBeans doesn't work (regression in functionality), and there's no known workaround. Given similar questions I've seen about installing JUnit off-line, the off-line situation doesn't appear to be terribly unusual. That seems to be the definition of a P1 bug.
Comment 8 AlyonaStashkova 2012-10-31 10:54:40 UTC
The issue is marked as resolved wontfix from the documentation perspective.
You may want to file another issue (not related to the usersguide product).
Comment 9 pjdm 2012-10-31 11:15:05 UTC
Fair enough. I've added a comment to bug 215881.