As the question says, I have on a PC a plugin installed in NetBeans, I would like to know if it can be exported to install it in a NetBeans of another PC.
As the question says, I have on a PC a plugin installed in NetBeans, I would like to know if it can be exported to install it in a NetBeans of another PC.
Short answer: It is not possible.
Long answer:
It is not possible because there is not an exact list of the files that are decompressed from the nbm, but even so, if you know exactly the essential files that make up a plugin you can copy them and paste them in the same folder in another netbeans installation with possibilities variants that run without errors and perform the same functionality.
I have done it several times but in very old versions of netbeans, due to plugins that were discontinued and / or had errors in later versions, as is the case with the jruby and the plugin of itext .
Assuming that the plugin files are easy to find and that you are willing to ruin your ide and invest a lot of time in the process is the following:
$HOME/.netbeans/VERSION/modules/
and $HOME/.netbeans/VERSION/config/Modules/
(and I do not know if it has changed since then), in my windows using netbeans-9 in my windows10 find the equivalent routes in C:\Users\TUNOMBREDEUSUARIO\AppData\Roaming\NetBeans.0\modules
and C:\Users\TUNOMBREDEUSUARIO\AppData\Roaming\NetBeans.0\modules\ext
Example:
For the plugin nb-spring boot plugin, the file com-github-alexfalappa-nb-springboot-plugin.jar
is in the first folder and in the ext folder there is a folder called com.github.alexfalappa.nb-springboot-plugin
.
You can use the same procedure to add libraries that are missing from your plugins, but they must comply with the osgi specification .
Additionally I leave you an old English tutorial on how to do it .