ActiveObjects Dependency

I am trying to use ActiveObjects in my plugin, following the tutorial. But my IntelliJIdea just refuses to resolve the dependency.

I have added this to pom.xml

<dependency>
<groupId>com.atlassian.activeobjects</groupId>
<artifactId>activeobjects-plugin</artifactId>
<version>1.4.0</version>
<scope>provided</scope>
</dependency>

All seems fine. But when I go to Java, and try to import

import com.atlassian.activeobjects.external.ActiveObjects;

I get "Cannot resolve symbol 'activeobjects'". I have tried cleaning project, IDEA cache invalidation, remiporting maven projects, but I have had no luck.

When I try the Search for Maven Artifact tool, it doesnt seem to be able to find any class named ActiveObjects.

 

1 answer

1 accepted

0 votes
Alexey Matveev Community Champion Nov 13, 2017

Hello,

I just tried to get the library and I had no problems so far. Could you run from command line the following (do not run it from IDEA):

atlas-mvn clean package

You need to be inside the plugin directory running atlas-mvn. Pay attention from where maven tries to download the library. If you received an error on this command, kindly show the error.

Well strangely enough, that command is successuful. So it just seems as Intellij IDEA problem, that it is unable to see the library correctly. Is there some way to fix it?

That is good.

1. In the same folder execute atlas-mvn eclipse:eclipse and open IntelliJ IDEA. Examine if everything works

2. In IntelliJ IDEA go to Settings then search for Maven and in the Maven Home Directory put the path to your atlassian-sdk maven. 

It works, thank you so much.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,950 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot