Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-47699

JIRA and Confluence Plugin Development Tutorials Don't Work

    XMLWordPrintable

Details

    Description

      I cannot get the JIRA Helloworld Plugin tutorial to work. (Specifically: https://developer.atlassian.com/docs/getting-started/set-up-the-atlassian-plugin-sdk-and-build-a-project/put-the-final-polish-on-the-project-in-eclipse).

      I've run through it a number of times. (I don't even want to tell you how many... ) I've also tried a few other tutorials for Confluence and JIRA and zero luck. I see the same issue with all of them. I'm not sure if there's an issue with how I've setup my dev environment (I'm completely new to JIRA/Confluence development and followed the instructions on how to install the SDK and recommended version of Java, etc.) I have started to see other people posting comments saying that they also cannot get the tutorials to work either, so I'm reaching out for help. For the errors I'm encountering, there is not enough explanation given in the tutorials to understand what is going wrong. If this turns out to be something on my end, I would suggest adding a better explanation of what exactly the plugin creation command generates and how to create these resources without using the auto-generate command.

      Here are the details on what's going wrong:

      When I run atlas-run to open JIRA and test the plugin, the Helloworld plugin is disabled. I try to enable it manually and get the following error:

      ERROR admin .... /rest/plugins/1.0/com.atlassian.tutorial.helloworld-key [c.a.p.osgi.factory.OsgiPluginInstalledHelper] Cannot determine required plugins, cannot resolve bundle 'com.atlassian.tutorial.helloworld'

      After that initial error, it keeps trying to load, and then I finally get a timeout error and the plugin does not load:

      ERROR admin ... /rest/plugins/1.0/com.atlassian.tutorial.helloworld-key [c.a.plugin.manager.PluginEnabler] Unable to start the following plugins due to timeout while waiting for plugin to enable: com.atlassian.tutorial.helloworld

      It looks like the files generated from the atlas-create-jira-plugin-module command do not yield the same files in the completed version of the tutorial hosted at https://bitbucket.org/atlassian_tutorial/helloworld.git

      Running atlas-create-jira-plugin-module yields:
      src/main/java/com/atlassian/tutorial/helloworld/api/MyPluginComponent.java
      src/main/java/com/atlassian/tutorial/helloworld/impi/MyPluginComponent.java

      Meanwhile, the Bitbucket code has:
      src/main/java/com/atlassian/tutorial/helloworld/MyPlugin.java

      I'm not sure how to resolve this. Any help is much appreciated!

      Attachments

        Activity

          People

            bc878d9874ad Oksana Levchuk (Inactive)
            4768e01a99df Phoebe
            Votes:
            19 Vote for this issue
            Watchers:
            22 Start watching this issue

            Dates

              Created:
              Updated: