How to export a plugin in NetBeans to import it into another PC

0

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.

    
asked by Sagara 24.01.2018 в 18:31
source

1 answer

0

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 and the plugin of .

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:

  • Go to the local module installation folder of your netbeans, it can vary in each operating system, in the linux it was originally in $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 in my find the equivalent routes in C:\Users\TUNOMBREDEUSUARIO\AppData\Roaming\NetBeans.0\modules and C:\Users\TUNOMBREDEUSUARIO\AppData\Roaming\NetBeans.0\modules\ext
  • Copy the files of your plugin
  • Paste on the equivalent carpta in the other netbeans installation
  • 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 .

        
    answered by 13.12.2018 в 00:43