The Atlassian Plugin SDK provides a set of shell scripts for creating, installing and building plugins for Atlassian products. This page introduces the SDK.
The Atlassian Plugin SDK makes your life easier by helping you do the following:
And more! And we're continually improving the SDK with new and better features.
The SDK commands are wrappers for the underlying Maven commands. The SDK Maven plugin defines custom Maven goals for performing common plugin development tasks. If you want to run the integration tests - and only the integration tests - you can say:
atlas-integration-test
Similarly, you can run the unit tests in isolation:
atlas-unit-test
You can also install your plugin from the command line, instead of having to browse to the correct page and make several clicks:
atlas-install-plugin
You can pass parameters on the command line in the form:
atlas-run-standalone --product confluence
To pass Java parameters in a command, use the jvmargs
parameter, in the following form:
1 2atlas-run-standalone --product confluence --jvmargs '-D<parameter1>=<value> -D<parameter2>=<value>'
If you're working behind a proxy server requiring NTLM authentication, you may find it convenient to use a local authenticating proxy server, such as cntlm
. You can then set Java HTTP environment variables in your SDK commands to point to the proxy. For example, by using:
1 2-Dhttp.proxyHost=localhost -Dhttp.proxyPort=3128 -Dhttps.proxyHost=localhost -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts=localhost|127.0.0.*
To run the SDK commands where your Java programs don't have direct access to the Internet, your atlas commands should be run with the -DallowGoogleTracking=false
flag. This disables Google web requests during the build process.
The table below shows the applications currently supported by the Atlassian Plugin SDK, the default port, and the product key for each host application.
Atlassian Application | Default Port | Product Key |
---|---|---|
6990 | bamboo | |
Bitbucket | 7990 | bitbucket |
1990 | confluence | |
4990 | crowd | |
3990 | fecru | |
3990 | fecru | |
2990 | jira | |
5990 | refapp |
The SDK supports both static and dynamic plugins. The focus is on version 2 plugins, as supported by the Atlassian Plugin Framework.
Rate this page: