Modify the plugin using QuickReload
So far you've discovered that you can create a plugin for JIRA and you can make changes to that plugin, however starting and stopping JIRA can take several minutes each time. QuickReload significantly reduces your plugin development iteration time by watching output directories for P2 JAR files and then uploads them into the running host application.
Step 1. Check QuickReload is enabled in your pom
- Open the
pom.xmlin your favourite text editor.
Search for the
<build>tags, you should see something similar to this:
<enableQuickReload>is set to true and
<enableFastdev>is set to false. If not, update the pom to match the example above and then save your changes.
- Open a Command Prompt window, and navigate to your
- Enter the
atlas-runcommand and wait for JIRA to start up.
- Login to JIRA and confirm that you can see the myItem menu which does not have a drop down menu when clicked.
Step 2. Make a change to your plugin while JIRA is running
- Open a second Command Prompt window and navigate to your
atlas-create-jira-plugin-modulecommand and answer the prompts as follows:
- Enter N when prompted to create another module.
Run the command:
and wait for your plugin package to build, when it's finished you'll see:
Return to the first command prompt window (the one you started JIRA in earlier using the
atlas-runcommand), you'll notice there are some log entries appearing. When the plugin has finished loading you'll see:
- Reload http://localhost:2990/jira in your browser window, and you'll see that your menu is now showing the changes you just made:
If you'd like to keep learning about add-on development you may want to try out the Confluence tutorial below:
Here are some other things you might like to do next: