I’m new to Confluence plugin development, and fairly new to JAVA. My situation is likely elementary for many people here, but being new, I could use a little guidance.
I started with the “Hello World” plugin tutorial. From there I expanded the project to add several additional macros, a new tool menu item (web-item), and a skeleton for a custom action (xwork). All of this is working fine, per the various tutorials available.
My trouble started when I began fiddling with the custom action function. I added a couple dependencies in the pom.xml, and now my plugin won’t enable. The output indicates that the plugin is taking too long to do so. Note that no changes have been made to any code files or the atlassian-plugin.xml. Removing the dependencies allows the plugin to enable (and function) properly.
I’ve tried different versions (and builds) of JAVA and I tried increasing the JVM memory. I also tried reconstructing the plugin from scratch. All to no avail.
How does one approach debugging this? Can someone provide a little guidance, please?
Potentially relevant details:
- Confluence SDK is running in a Linux (Ubuntu 21.04 Server) VM on a Windows 10 host. VM is configured with 10 cores and 16G of RAM.
- Currently using Oracle JDK 1.8.0_251. I’ve also tried AdoptOpenJDK 8 and 11.
- The dependencies added are for OpenHTMLtoPDF.
Thanks in advance!