I am trying to develop a plugin for Micromanager 2.0, which uses ImageJ as the base, and I would like to use the IntelliJ IDE as I am familiar with pycharm.
However, I am having problems building the plugin jar using IntelliJ. When I build the jar, it does not contain the
JSON folder holding the
org.scijava.plugin.Plugin class. This prevents the plugin from being loaded into ImageJ/Micromanager; i.e., I start up ImageJ.exe and it will not show up in the Micromanager plugins list. I can circumvent this by starting Micromanager from IntelliJ using the correct run configuration, but the jar itself is still in the wrong format.
I’ve tested building the same plugin using Netbeans and the jar is built correctly, so there’s no problem with the code. I can run ImageJ/Micromanager from Netbeans or directly as an application and the plugin shows up for both.
Does anyone know how to build the jar correctly in IntelliJ?