When your plugin is ready, you might want to upload it to the JetBrains Plugin Repository (http://plugins.intellij.net) or to the repository of your own. Yet, before uploading a plugin, you need to create a ZIP or JAR plugin archive. This section provides instructions for creating such an archive.
Right-click the plugin module in the Project view and
select Prepare Plugin Module <module-name> For Deployment in the context menu.
As a result, IntelliJ IDEA will create the necessary archive.
If the plugin module does not depend on libraries, a JAR archive will be created. Otherwise, a ZIP archive will be created that will include all the necessary libraries.