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 JDK1.8.x installed as described in Before you begin
Verify that you JAVA_HOME is set in your system by running echo $JAVA_HOME from the terminal
|
Copy
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).
|
Add the following lines at the end of the file:
|
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.
Save and close the file.
Enter the following at the command line to pick up your changes:
|
Verify you are now seeing the correct result when you enter the command javac -version
in terminal
|
There are native installers for a number of operating systems available, as well as a TGZ (GZipped tar file) which can be used for manual installation.
Last updated 04 Dec 2015
By downloading and/or using this SDK you agree to the Atlassian Developer Terms
PKG File
Open a Terminal window and add the Atlassian “Tap” to your Brew using the command:
|
Then install the SDK using the atlassian/tap command:
|
Next: Verify that you have set up the SDK correctly
On a Debian-based Linux system like Ubuntu, you can install the SDK using apt-get
or aptitude
:
First, set up the Atlassian SDK repositories:
|
Download the public key using curl
or wget
:
|
Add the public key to apt
to verify the package signatures automatically:
|
|
Then, run the install:
|
Next: Verify that you have set up the SDK correctly
To install on systems that use the Yum package manager:
Create the repo file in your /etc/yum.repos.d/ folder:
|
Configure the repository details:
[Artifactory]
name=Artifactory
baseurl=https://packages.atlassian.com/atlassian-sdk-rpm/
enabled=1
gpgcheck=0
Install the SDK:
|
As always,Verify that you have set up the SDK correctly.
To install the latest version of SDK, do the following:
Extract the file to your local directory.
|
Rename the extracted folder to atlassian-plugin-sdk
.
|
If you are comfortable working with symbolic links, you can set up a symbolic link instead of renaming the directory.
Next: Verify that you have set up the SDK correctly
Open a terminal window and run the following command:
|
You should see something similar to:
|
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!
Create a Plugin
Need help? Request support at Developer Technical Support Portal
官网:https://developer.atlassian.com/server/framework/atlassian-sdk/install-the-atlassian-sdk-on-a-linux-or-mac-system/