A new version of Netbeans just came out. Is there anything I can do to avoid having to manually hunt down my plugins again?

前提是你 提交于 2019-12-03 16:33:57
John Carter

Netbeans 6.7 does has this feature: Importing Plugins From Previous Release Into The New One, but it seems a bit shy about it.

When the new version of Netbeans is launched you'll be asked if you want to import settings from a previous version.

Click yes and Netbeans will look for compatible plugins in the background.

Note that you won't be prompted again. Instead, after a few minutes, an icon should appear in the bottom-right corner:

http://lh6.ggpht.com/_BEizchvf9zs/Sk83UjMwZBI/AAAAAAAAABQ/hlX5DT-k0fg/s800/netbeans-screenshot.png

Not exactly in your face, right?

Click on that and you'll get the option of installing any compatible plugins.

Also note that if you exit this process at any point then the icon will disappear - restarting Netbeans will bring it back (though you might have to wait for it to do another background scan).

Finally, you can also trigger this process (and choose an arbitrary userdir location to import from) with the command line option -J-Dplugin.manager.import.from=/path/to/userdir

e.g. in Vista:

C:\Users\JDoe>"c:\Program Files (x86)\NetBeans 6.7\bin\netbeans" -J-Dplugin.manager.import.from="C:\Users\JDoe\.netbeans\6.5"

or in Ubuntu:

/bin/sh ~/netbeans-6.7/bin/netbeans -J-Dplugin.manager.import.from="/homes/YOURHOMEDIR/.netbeans/6.5"

This might be useful if you want to import from a beta install.

If only there was a plugin collector plugin like Firefox in Netbeans :P

In the 'modules' sub-directory of the < install_dir >/< nb version >/, you will see the JARs of the modules you installed. But, there is no metadata information apparently there. And, I don't think only copying the JARs will help. Even if it does, couple of things: you will not be able to update the modules, when there are recent versions available and the old modules may simply not be compatible with the new release.

So, the best thing, even though repeated work, is to install them from the Plugin manager.

PS: You may consider asking this on the 'nbusers' mailing list.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!