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 vote
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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

184 views 1 11
Read article

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