I’m starting out development of an OpenFire plugin. I would like for it to be dependent on Kraken, so I am using the element in plugin.xml. In my code, I am attempting to reference some constants defined in Kraken source, and I am getting compile-time errors, indicating that the constants cannot be found.
The build doesn’t seem to do anything with parentplugin - I presume that currently this information is only processed and used at runtime? So, the question is, what should I do? I could include the kraken plugin jar in the lib dir of my own plugin (and maybe not even bother with the element), but that seems somewhat wasteful, since then it will get loaded twice. Also, if I were to update the version of kraken in use, I would need to update it in two places - kraken as a plugin, and kraken as a library referenced from my plugin.
It should be possible to parse the plugin.xml file for the parentplugin element, and then if one is found, use the actual jar from the target/plugins directory on the classpath… I could write this functionality myself. Would it be a useful thing to contribute back to the community?