Configure IDEA to use the SDK

Yeah that tutorial won’t work…

You need to set up your maven settings:

Step 1

In a terminal - execute atlas-version. You should get something like:

ATLAS Version:    6.2.14
ATLAS Home:       /Applications/Atlassian/atlassian-plugin-sdk-6.1.0
ATLAS Scripts:    /Applications/Atlassian/atlassian-plugin-sdk-6.1.0/bin
ATLAS Maven Home: /Applications/Atlassian/atlassian-plugin-sdk-6.1.0/apache-maven-3.2.1
AMPS Version:     6.2.11
--------
Executing: /Applications/Atlassian/atlassian-plugin-sdk-6.1.0/apache-maven-3.2.1/bin/mvn --version -gs /Applications/Atlassian/atlassian-plugin-sdk-6.1.0/apache-maven-3.2.1/conf/settings.xml
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T09:37:52-08:00)
Maven home: /Applications/Atlassian/atlassian-plugin-sdk-6.1.0/apache-maven-3.2.1
Java version: 1.8.0_65, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"

# Step 2

Note the value of ATLAS Maven Home. In my case it’s /Applications/Atlassian/atlassian-plugin-sdk-6.1.0/apache-maven-3.2.1

Inside this folder is your maven settings file (at conf/settings.xml ).

# Step 3

Head back into IDEA and go to your preferences and under Build, Execution, Deployment > Build Tools > Maven:

Fill out your User settings file with the conf/settings.xml file path (absolute path) and unless you have a very specific need from some other maven version - change the maven home directory as well.

9 Likes