This page describes the various methods you can use to reload a plugin and check your changes.
There is no need to manually install your plugin into the Atlassian application every time you change the code. Instead, you can use Fastdev in your browser to dynamically reinstall your plugin after each change. FastDev can also handle reloads for multi-module maven projects that contain multiple plugins. You can also disable FastDev, or configure it to ignore changes in given files or use a different Maven command. Please refer to the FastDev configuration guide.
FastDev and atlas-cli have been deprecated. Please use Automatic Plugin Reinstallation with QuickReload instead.
To trigger the reinstallation of your plugin:
Use live reload to view real-time updates to templates and other resources:
As an alternative to FastDev, you can keep the application running in one command window and use the CLI (command line interface) in another window to dynamically re-install your plugin after each change.
pom.xml
is located).atlas-cli
to start the CLI.Waiting for commands
.pi
(plugin install) to compile, package and install the plugin.Note: You can use the shell script directly instead of using the CLI, although the performance is less efficient, just run atlas-install-plugin
.
ctrl-c
in the first window and type atlas-run
again to completely restart the host app with your latest changes included. See the list of plugin modules that cannot be dynamically reloaded.atlas-compile
to compile the plugin.atlas-unit-test
to run the unit tests.atlas-package
to produce the JAR.The Atlassian Plugin SDK provides many more scripts supporting various goals, as described in the detailed documentation.
You can use atlas-debug
instead of atlas-run
. This sets up the host application so that you can attach your IDE's remote debugger to it. Read the instructions on setting up a remote debugger.
Atlassian plugins depend on Maven 2 to run their test suites. This is advantageous because all plugins are always tested the same way, and because Bamboo, our continuous integration server, can do likewise. Find out how to make it happen.
Rate this page: