How can you change module type to plugin from a checked out repo?


I am trying to build a plugin I wrote:

I am using IntelliJ Ultimate 2016.3.4.

I am following the plugin development guide here:

After I check out the code from GitHub, I open it with IntelliJ. The problem is that IntelliJ seems to auto-detect that is just a Java project rather than a plugin project. I have found no way to change this and tell IntelliJ that I need to treat the module as a plugin module instead.

What steps do I need to take to actually get IntelliJ to build the module as a plugin?


change the module type in the .iml file from:

<module type="JAVA_MODULE" version="4">


<module type="PLUGIN_MODULE" version="4">





It was actually already set to:

<module type="PLUGIN_MODULE" version="4">

But it seems like IntelliJ didn't recognize the file. I happened to right click on cppcheck.iml and added the module manually and then IntelliJ recognized the module as a plugin module.


The IDE creates a new iml file in the .idea directory and puts a reference to it in the .idea/modules.xml file.

I have edited this file on many occasions to point the reference back to the original iml file for the module:

 <module fileurl="file://$PROJECT_DIR$/idea-multimarkdown.iml" filepath="$PROJECT_DIR$/idea-multimarkdown.iml" />

The IDE created file will have .idea subdirectory inserted in the fileurl and the file path attributes, both need to be removed to point it to the original iml file.



I modified the (only) module file to change to a PYTHON_MODULE. No more problems. Well, for one thing it opens up 10x faster.


Please sign in to leave a comment.