Invoke external java class into plugin

XMLWordPrintable

    • 1

      Hi everyone,

      We have confluence plugin(macro) built with sdk that calls an external java class(jar). We have imported with maven pom and then invoked into the execute method.
      In the pom if the dependency is "compiled" it's working fine but we need to set it as "provided".
      I followed the atlassian documentation(https://developer.atlassian.com/server/framework/atlassian-sdk/bundling-extra-dependencies-in-an-obr/\) and when i install the plugin i receive: java.lang.ClassNotFoundException
      Also if i use the export-package i successfully installed the plugin but when i call the class i receive: error rendering class and still have: java.lang.ClassNotFoundException

      So the attemps:

      • import-package (pom)
      • export-package (pom)
      • trying in atlassian-plugin.xml??

      Thanks for the help

              Assignee:
              Unassigned
              Reporter:
              Salvatore Caldone
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: