Fail to load plugin descriptor from file *.jar

Answered

I did the steps for plugin deployment explained here :https://www.jetbrains.com/help/idea/2016.2/preparing-plugins-for-publishing.html?search=plugin and added the .jar to the /plugins folder in my IntelliJ's installation directory.

After restarting IntelliJ, I can't see my plugin in Setttings->Plugins so I try to install it from disk but after choosing the .jar I get the error message:
" Fail to load plugin descriptor from file *.jar "

Any idea on how to address this problem?

4 comments
Comment actions Permalink

Verify that plug-in is packaged correctly, there must be valid META-INF/plugin.xml file inside the jar.

1
Comment actions Permalink

The plugin.xml file is not well formed, thanks!

 

0
Comment actions Permalink

thanks Serge for the clue. yes I too don't find plugin file within the jar. But i'm wondering why none of the jars listed on jetbrain have plugin.xml file by default https://plugins.jetbrains.com/plugin/137-testng-j 

Am I supposed to add it myself? if yes then could you/team please help on steps.

0
Comment actions Permalink

TestNG plug-in has it here:

TestNG-J_3670.zip\testngrunner\META-INF\plugin.xml

There are different ways to layout a plug-in: http://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_content.html

0

Please sign in to leave a comment.