ActiveObjects Dependency

Ivana Navratilova November 13, 2017

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
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 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.

Ivana Navratilova November 13, 2017

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?

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 13, 2017

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. 

Ivana Navratilova November 13, 2017

It works, thank you so much.

Suggest an answer

Log in or Sign up to answer