Found multiple plugin descriptors... Only one plugin must be bundled in a plugin discription
Hi
I've got an error during submitting a new plugin version:
"Found multiple plugin descriptors in plugin/lib/connector-for-aws-lambda.jar and plugin/lib/maven.jar. Only one plugin must be bundled in a plugin distribution."
This plugin:
https://plugins.jetbrains.com/plugin/9886-connector-for-aws-lambda
This release:
https://github.com/satr/intellij-idea-plugin-connector-for-aws-lambda/releases/tag/v1.6
I could add this plugin from the disk to the IDEA - it works fine.


Please sign in to leave a comment.
Hello, Sergey
There is no need to bundle Maven plugin's classes into your plugin distribution. You have already specified dependency on "org.jetbrains.idea.maven" in plugin.xml. It will be resolved to Maven plugin bundled to the IDEA distubution, which resides in <IDEA_HOME>/plugins/maven directory.
Bundling dependent plugins' classes into your own plugin is unwelcome practice, since you may come across subtle problems caused by different versions of the same classes.
Actually, the Plugin Repository has stricter rules for plugins than required by IDEA. For instance, given the current checks in IDE, there is no guarantee that your plugin will be correctly loaded. IDE might have loaded `maven.jar` instead.
Hi Sergey, thank you for the prompt respond.
I did not put maven.jar to the plugin implicitly - I referenced on it and hit "Prepare All Plugin Modules For Deployment" menu item. If I do not reference to it - I get an error "Cannot resolve plugin org.jetbrains.idea.maven"
As far as I remember - it was a suggestion on one forum to put this reference, so far it worked fine.
Could you tell how I can reference to the maven in the <IDEA_HOME>/plugins/maven ?
Hi, Sergey!
Instead of adding maven.jar as a dependency of your plugin's module (in Modules section), you should add it to the IntelliJ SDK classpath (in SDKs section).
This is described in our SDK's tutorial: http://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html
As soon as the maven plugin is bundled, it must be in the SDKs classpath already. If not, you may re-create SDK from IDEA installation.
The maven.jar was bundled because you chose "Compile" scope for it.
By the way, to simplify plugin development, I suggest using the Gradle IntelliJ Plugin: https://github.com/JetBrains/gradle-intellij-plugin.
Besides other useful things, it can automatically download IDE build of a version you specified, eliminating the need to refer to a local IDE installation.
Thank you, I will try this.