[//]: # (title: Publishing a Plugin to a Custom Plugin Repository) If you intend to use a plugin repository _other than_ the [JetBrains Marketplace](https://plugins.jetbrains.com), you will need to: 1. Create and maintain an updatePlugins.xml* file on the HTTPS web server you are using for your custom repository. This file describes all the plugins available in your custom repository and each plugin's download URL. 2. Upload your plugin JAR/ZIP file to an HTTPS web server. This can be the same web server you are using for the custom repository or a different HTTPS web server. 3. Add the URL for the custom repository to the JetBrains IDE [Repository Settings/Preferences](https://www.jetbrains.com/help/idea/managing-plugins.html#repos). \* The updatePlugin.xml file name is not fixed and can be different. > Gradle plugin [IntelliJ plugin uploader](https://github.com/brian-mcnamara/plugin_uploader) can be used to automate deployment. > {type="tip"} To avoid collisions between private plugins and those hosted on JetBrains Marketplace, an organization can [reserve plugin IDs](https://plugins.jetbrains.com/docs/marketplace/reserved-plugin-ids.html). ## Describing Your Plugins in updatePlugins.xml File Every custom plugin repository must have at least one updatePlugins.xml file to describe every hosted plugin's latest available version. The description in updatePlugins.xml is used by JetBrains IDEs to locate plugins by attributes such as identifier, IDE version, and plugin version. These attributes are displayed by JetBrains IDEs to help users select or upgrade plugins. The description also tells the JetBrains IDE where to download the plugin itself. A custom plugin repository's updatePlugins.xml file is constructed and maintained by the repository administrator. More than one updatePlugins.xml file may be required if the custom repository consumers are using more than one version of a JetBrains IDE. For example, updatePlugins-182.xml, updatePlugins-183.xml for IntelliJ IDEA 2018.2 and 2018.3, respectively. Each updatePlugins-*.xml file will have a unique URL that is added to the JetBrains IDE [Repository Settings/Preferences](https://www.jetbrains.com/help/idea/managing-plugins.html#repos). ### Format of updatePlugins.xml File The format of an updatePlugins.xml file is simply a list of sequential elements that describe each plugin: ```xml ``` **Notes:** * An updatePlugins.xml file must contain at least one `` element. * A plugin `id` may be listed only once in an updatePlugins.xml file. * Multiple plugins with the same `id` but different `idea-version` attributes must be split into separate updatePlugins-*.xml files. The requesting IDE's version is passed as `build` parameter and can be used for server-side filtering. ### Optional updatePlugin.xml Elements Can additional elements be added to updatePlugins.xml? Yes, but it's advisable only if needed. The additional elements will have to be synchronized with each plugin's plugin.xml file. During plugin installation, the IDE reads the plugin JAR/ZIP file, and thereafter displays more information about the plugin. What additional information might help a user select a plugin when [browsing the custom plugin repository](https://www.jetbrains.com/help/idea/managing-plugins.html#repos) before installation? The answer depends on the plugins and repository consumers. Here are the candidate elements: | Element | Effects & Requirements | |:--------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ``
My Plugin Name
`
` | By default the name of the plugin JAR/ZIP file is displayed before installation.
Using the `` element displays the name of the plugin.
Contents should match the `` element contents in the plugins's plugin.xml file to avoid confusion. | | ``
My plugin is awesome
`
` | By default no description for the plugin is displayed before installation.
Using the `` element will cause a description to be displayed before installation.
Contents should match the `` element contents in the plugins's plugin.xml file to avoid confusion.
Optionally, an enclosing `` element can be used if the description needs to contain HTML tags. | | ``
Added cool feature
`
` | By default no change notes for the plugin are displayed before installation.
Using the `` element will cause a description of changes to be displayed before installation.
Contents should match the `` element contents in the plugin's plugin.xml file to avoid confusion.
Optionally, an enclosing `` element can be used if the change notes need to contain HTML tags. |