Not using Linux / Mac?
Windows users should see Install the Atlassian SDK on a Windows system
On this page, you install the SDK on your Linux or Mac system. You also configure your operating system to recognize the SDK commands in your environment.
This assumes that you have the Java SE Development Kit (JDK) 8 or AdoptOpenJDK 8 installed as described in Before you begin
Verify that you have JAVA_HOME set in your system by running echo $JAVA_HOME from the terminal
1 2host:~ test$ echo $JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
If the output resembles the above skip ahead to Step 2: Download and Install the SDK
The JAVA_HOME
environment variable specifies the location of the JDK on your system. On Mac OS X, if you accepted the defaults when you installed the JDK, this is /Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home
. On Linux, it may be /usr/local/jdk
, or a similar location. You should add the JDK's bin
directory to your PATH
environment variable as well. This ensures your environment is configured and can locate the javac
command.
To set your PATH
and JAVA_HOME
variables:
Edit the .bashrc
file in your home directory using your favourite editor (we use vi in this example).
1 2host:~ test$ vi ~/.bash_profile
Add the following lines at the end of the file:
1 2JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0.0_91.jdk/Contents/Home export JAVA_HOME export PATH=$PATH:$JAVA_HOME/bin
The path in Line 1 will be the path for the JDK on your system.
For Mac OS X this is usually /Library/Java/JavaVirtualMachines/1.8.x.jdk
. On Linux it may be /usr/local/jdk
or similar.
You can choose to setup your machine to quickly change between different java versions by following the instructions here
Save and close the file.
Enter the following at the command line to pick up your changes:
1 2host:~ test$ source ~/.bash_profile
Verify you are now seeing the correct result when you enter the command javac -version
in terminal
1 2host:~ test$ javac -version javac 1.8.0_91
There is homebrew installer for Mac OSX, as well as a TGZ (GZipped tar file) which can be used for manual installation on Windows / Mac OS / Linux operating systems.
Last updated 04 Dec 2015
By downloading and/or using this SDK you agree to the Atlassian Developer Terms
Open a Terminal window and add the Atlassian "Tap" to your Brew using the command:
1 2brew tap atlassian/tap
Then install the SDK using the atlassian/tap command:
1 2brew install atlassian/tap/atlassian-plugin-sdk
To install the latest version of SDK, do the following:
Locate the downloaded SDK file.
Extract the file to your local directory.
1 2sudo tar -xvzf atlassian-plugin-sdk-9.0.2.tar.gz -C /opt
Rename the extracted folder to atlassian-plugin-sdk
.
1 2sudo mv /opt/atlassian-plugin-sdk-9.0.2 /opt/atlassian-plugin-sdk
If you are comfortable working with symbolic links, you can set up a symbolic link instead of renaming the directory.
Open a terminal window and run the following command:
1 2atlas-version
You should see something similar to:
1 2ATLAS Version: 9.0.2 ATLAS Home: /opt/homebrew/Cellar/atlassian-plugin-sdk/9.0.2/libexec ATLAS Scripts: /opt/homebrew/Cellar/atlassian-plugin-sdk/9.0.2/libexec/bin ATLAS Maven Home: /opt/homebrew/Cellar/atlassian-plugin-sdk/9.0.2/libexec/apache-maven-3.9.8 AMPS Version: 9.0.2 -------- Executing: /opt/homebrew/Cellar/atlassian-plugin-sdk/9.0.2/libexec/apache-maven-3.9.8/bin/mvn --version -gs /opt/homebrew/Cellar/atlassian-plugin-sdk/9.0.2/libexec/apache-maven-3.9.8/conf/settings.xml Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256) Maven home: /opt/homebrew/Cellar/atlassian-plugin-sdk/9.0.2/libexec/apache-maven-3.9.8 Java version: 1.8.0_45, vendor: Oracle Corporation Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "14.5", arch: "x86_64", family: "mac"
Look for Maven home
and note that you are running the version of Maven that is installed with the SDK.
You now have a local development environment configured for the Atlassian SDK and you're ready to build your first plugin!
Need help? Request support at Developer Technical Support Portal
Rate this page: