custom intellij plugin repository

I'm developing an intellij and i'd like to setup my own private repository so that users of the plugin will have their plugin automatically updated. I don't want to use JetBrain's repository. I can't find any material online on how to do this, could someone point me to some? Or else just explain how to do that here?

11 comments
Comment actions Permalink

Ok, i've successfully set up my repository now. How do I get the installed plugin on my machine to update whenever the repository version changes. I am changing the version number in updatePlugins.xml on the server, but my intellij plugin on my machine doesn't update.

0
Comment actions Permalink

Did you install the plugin from the repository?

You should just trace the network requests that IDEA is making to your server to see if it is requesting a URL that you aren't serving

0
Comment actions Permalink

I installed from the repository successfully. I'm sure it's hitting the appropriate URL.
One thing that I may be doing incorrectly. Online it said that when you add a new repository, the repository-url you give intellij should be of the form "http://plugins.example.com:8080", but the repository-url I gave is of the form "http://plugins.example.com:8080/updatePlugins.xml". When I tried the former I couldn't download/install my plugin from the repository, but the latter worked.

Also, could it be the case that i'm just not waiting long enough for intellij to realize there's an update available? I assume intellij pings the repository every now and then to see if updatePlugins.xml has incremented its version number. If this ping happens how frequently does it happen? and is there some way for me to adjust the frequency?

0
Comment actions Permalink

Hi Evan,

did you try to invoke Help|Check for Update...? It would check your repository if the new plugin is available. Otherwise the check is performed once a day or after you've updated your IDEA installation.

Thanks,
Anna

0
Comment actions Permalink

When I Help|Check for Updates I get the message "You already have the latest version of Intellij IDEA installed. To configure automatic update settings, see the Updates dialog of your IDE Preferences". I can see the requests coming in on my repository, whenever I check for updates the repository serves up updatePlugins.xml and the jar for the plugin.
Also I noticed that I have 2 xml files, 1.) updatePlugins.xml which is hosted on the repository and is the url that I gave intellij to download the plugin, and 2.) A plugin.xml that intellij made for me that contains the action for the plugin. Both xml files contain a version number and i've updated them both, whicn one is necessary?

0
Comment actions Permalink

In plugin.xml and updatePlugins.xml the version number is 1.4, but when I go to preferences -> plugins and click on my plugin, the reported version is 1.0. Why is this?

0
Comment actions Permalink

Hi Evan,

updatePlugins.xml provides an url to download and a version so IDEA would be able to deside if it is newer than already installed on. So plugin.xml should be loaded inside plugin's zip/jar only, no need to upload it separately.

IDEA thinks that you have latest plugin, it would not suggest anything if

  • plugin is disabled
  • new plugin is incompatible with your IDEA installation (since/until versions checks)


Please also check your idea.log if there is something about update.

Anna

0
Comment actions Permalink

In Settings|Plugins current version of the plugin is shown so you can e.g. report bugs on it.

0
Comment actions Permalink

What Plugin name in updatePlugin.xml and in plugin.xml file? Is is same?

0
Comment actions Permalink

yes, they should be the same as well as pluginIds

0

Please sign in to leave a comment.