# Configure IDEA to use the SDK

**URL:** <https://community.developer.atlassian.com/t/configure-idea-to-use-the-sdk/10610>\
**Category:** Jira Development\
**Tags:** plugin-sdk\
**Created:** [October 30, 2017, 10:23pm UTC](https://community.developer.atlassian.com/t/configure-idea-to-use-the-sdk/10610 "2017-10-30T22:23:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon80787577](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@anon80787577](https://community.developer.atlassian.com/u/anon80787577)\
**Post date:** [October 30, 2017, 10:23pm UTC](https://community.developer.atlassian.com/t/configure-idea-to-use-the-sdk/10610/1 "2017-10-30T22:23:19Z")

</div>

Hi,

I have followed the instructions posted here:  
[https://developer.atlassian.com/docs/developer-tools/working-in-an-ide/configure-idea-to-use-the-sdk](https://developer.atlassian.com/docs/developer-tools/working-in-an-ide/configure-idea-to-use-the-sdk)

However, I am still getting “Cannot resolve symbol” for Jira imports.  
IDEA sees JDK just fine, but unable to see Jira’s SDK.

Is there anything else that I will need to configure?

---

<div class="post-metadata">

**Author:** ![anon14472852](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@anon14472852](https://community.developer.atlassian.com/u/anon14472852)\
**Post date:** [October 30, 2017, 10:38pm UTC](https://community.developer.atlassian.com/t/configure-idea-to-use-the-sdk/10610/2 "2017-10-30T22:38:20Z")

</div>

Even if you use IDEA, call the following in the console:

```auto
atlas-mvn eclipse:eclipse

```

For me, that solved the problem.

---

<div class="post-metadata">

**Author:** ![anon80787577](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@anon80787577](https://community.developer.atlassian.com/u/anon80787577)\
**Post date:** [October 31, 2017, 2:18pm UTC](https://community.developer.atlassian.com/t/configure-idea-to-use-the-sdk/10610/3 "2017-10-31T14:18:22Z")

</div>

Hmm…tried that, no luck. I included a screen capture if that helps.

 ![](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/8/c/8cbbef181a92e4773c0ced013196c88552b3f27f.png)

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/daniel/32/35798_2.png) [@daniel](https://community.developer.atlassian.com/u/daniel)\
**Post date:** [October 31, 2017, 3:21pm UTC](https://community.developer.atlassian.com/t/configure-idea-to-use-the-sdk/10610/4 "2017-10-31T15:21:54Z")

</div>

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:

```auto
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:

 ![](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/0/b/0bdc58c3c76f9c11ae0abc4d60983d74a7341475.png)

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.

---

<div class="post-metadata">

**Author:** ![anon80787577](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@anon80787577](https://community.developer.atlassian.com/u/anon80787577)\
**Post date:** [October 31, 2017, 4:05pm UTC](https://community.developer.atlassian.com/t/configure-idea-to-use-the-sdk/10610/5 "2017-10-31T16:05:05Z")

</div>

Hi, did just that and still no good.

## Step 1

```auto
atlas-version

ATLAS Version: 6.2.15
ATLAS Home: C:\Applications\Atlassian\atlassian-plugin-sdk-6.2.15
ATLAS Scripts: C:\Applications\Atlassian\atlassian-plugin-sdk-6.2.15\bin
ATLAS Maven Home: C:\Applications\Atlassian\atlassian-plugin-sdk-6.2.15\apache-maven-3.2.1
AMPS Version: 6.2.11
--------
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-6.2.15\apache-maven-3.2.1\bin\mvn.bat" --version -gs C:\Appli
cations\Atlassian\atlassian-plugin-sdk-6.2.15\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: C:\Applications\Atlassian\atlassian-plugin-sdk-6.2.15\apache-maven-3.2.1
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_121\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"

```

## Step 2/3

 ![](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/2/1/21c711fd39a53bfbd02759d15a9d4da4826c375f.png)

## Step 4

File → Invalidate Caches / Restart

---

<div class="post-metadata">

**Author:** ![anon80787577](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@anon80787577](https://community.developer.atlassian.com/u/anon80787577)\
**Post date:** [October 31, 2017, 4:07pm UTC](https://community.developer.atlassian.com/t/configure-idea-to-use-the-sdk/10610/6 "2017-10-31T16:07:37Z")

</div>

Here is my pom.xml

```auto
<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.atlassian.plugins.tutorial.jira</groupId>
    <artifactId>jira-report-plugin</artifactId>
    <version>1.0-SNAPSHOT</version>
    <organization>
        <name>Atlassian Developers</name>
        <url>https://developer.atlassian.com/</url>
    </organization>
    <name>jira-report-plugin</name>
    <description>Extends JIRA issue reports.</description>
    <packaging>atlassian-plugin</packaging>
    <dependencies>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-api</artifactId>
            <version>${jira.version}</version>
            <scope>provided</scope>
        </dependency>
        <!-- Add dependency on jira-core if you want access to JIRA implementation classes as well as the sanctioned API.-->
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-core</artifactId>
            <version>${jira.version}</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.10</version>
            <scope>test</scope>
        </dependency>
        <!-- WIRED TEST RUNNER DEPENDENCIES -->
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-osgi-testrunner</artifactId>
            <version>${plugin.testrunner.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <version>1.1.1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.2.2-atlassian-1</version>
        </dependency>
        <!-- Uncomment to use TestKit in your project. Details at https://bitbucket.org/atlassian/jira-testkit -->
        <!-- You can read more about TestKit at https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+Smarter+integration+testing+with+TestKit -->
        <!--
		<dependency>
			<groupId>com.atlassian.jira.tests</groupId>
			<artifactId>jira-testkit-client</artifactId>
			<version>${testkit.version}</version>
			<scope>test</scope>
		</dependency>
		-->
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <version>1.8.5</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-jira-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <applications>
                        <application>
                            <applicationKey>jira-software</applicationKey>
                            <version>${jira.software.application.version}</version>
                        </application>
                        <application>
                            <applicationKey>jira-servicedesk</applicationKey>
                            <version>${jira.servicedesk.application.version}</version>
                        </application>
                    </applications>
                    <productVersion>${jira.version}</productVersion>
                    <productDataVersion>${jira.version}</productDataVersion>
                    <!-- Uncomment to install TestKit backdoor in JIRA. -->
                    <!--
					<pluginArtifacts>
						<pluginArtifact>
							<groupId>com.atlassian.jira.tests</groupId>
							<artifactId>jira-testkit-plugin</artifactId>
							<version>${testkit.version}</version>
						</pluginArtifact>
					</pluginArtifacts>
					-->
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.6.2</version>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <properties>
        <jira.version>7.1.0</jira.version>
        <amps.version>6.2.9</amps.version>
        <jira.software.application.version>7.5.0</jira.software.application.version>
        <jira.servicedesk.application.version>3.8.2</jira.servicedesk.application.version>
        <plugin.testrunner.version>1.2.3</plugin.testrunner.version>
        <!-- TestKit version 5.x for JIRA 5.x, 6.x for JIRA 6.x -->
        <testkit.version>5.2.26</testkit.version>
    </properties>
</project>

```

**By the way, in IDEA, the version 3.6.2 for maven-compiler-plugin is highlighted red. Not sure if thats what you see on your end too and if that has anything to do with this issue.**

![](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/c/6/c699c094ea69ad266e6c1124f51518d71120504b.png)

---

<div class="post-metadata">

**Author:** ![anon80787577](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@anon80787577](https://community.developer.atlassian.com/u/anon80787577)\
**Post date:** [November 7, 2017, 3:17pm UTC](https://community.developer.atlassian.com/t/configure-idea-to-use-the-sdk/10610/7 "2017-11-07T15:17:50Z")

</div>

Hi @daniel,

I believe it was an outdated pom.xml file that was causing it.  
I am running everything in CentOS now and IDEA seems to be happy for now.

---

<div class="post-metadata">

**Author:** ![xirustam](https://avatars.discourse-cdn.com/v4/letter/x/d9b06d/32.png) [@xirustam](https://community.developer.atlassian.com/u/xirustam)\
**Post date:** [October 22, 2018, 10:25am UTC](https://community.developer.atlassian.com/t/configure-idea-to-use-the-sdk/10610/8 "2018-10-22T10:25:54Z")

</div>

This worked for me, thanks!

---

<div class="post-metadata">

**Author:** ![xarkam](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/xarkam/32/37509_2.png) [@xarkam](https://community.developer.atlassian.com/u/xarkam)\
**Post date:** [February 28, 2019, 12:29pm UTC](https://community.developer.atlassian.com/t/configure-idea-to-use-the-sdk/10610/9 "2019-02-28T12:29:20Z")

</div>

Thank you. It helped me a lot.

Why Atlassian does not update its documentation?
