Install insight to Maven project

gia01020304 February 11, 2019

I was read https://documentation.riada.io/display/ICV60/Insight+App+Development

I Extract file insight-6.1.0.obr and i see insight-6.1.0.jar after that I install to maven add dependency to project but I don't see insight-core-model 

Lead to me can not import com.riadalabs.jira.plugins.insight.services.model.ObjectBean;

Look forward to hearing from you soon. Thank you.

 

1 answer

1 accepted

6 votes
Answer accepted
Yinon Negev
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.
February 12, 2019

Hi Gia.

   

  Instead of Importing packages to the Repository, simply use the following in your pom.xml, which will copy the packages for you (supported if Insight 6.0.1 is installed):

<repositories> <repository> <id>riada</id> <url>https://repo.riada.io/repository/riada-repo/</url> </repository> </repositories> <properties> <insight.version>6.0.1</insight.version> </properties> <dependencies> <dependency> <groupId>com.riadalabs.jira.plugins</groupId> <artifactId>insight</artifactId> <version>${insight.version}</version> <classifier>api</classifier> <scope>provided</scope> </dependency> </dependencies>

 

For the rest of the comunity:

If you are using a previous version (e.g. 5.5.7) and do not wish to upgrade Insight:

As noted in the document you referred to: "You need to install insight locally into your mvn repository." and you will have to do this manually by extracting the Insight OBR then the Insight JAR, and manually copy the com.riadalabs.jira.plugins.insight.services.model and com.riadalabs.jira.plugins.insight.services.iql packages to your repository, respecting the correct path ...\repository\com\riadalabs\insight-core-model\0.3.n etc...

The Packages will be found in the Extracted JAR path similar to : ...\insight-5.7.0\insight-5.7.0\META-INF\lib

You can download the different versions of Insight OBR file here.

Please let us know if you require additional information.

Kind regards,

Yinon

Team Riada

gia01020304 February 12, 2019

Thank you!

pevana
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 10, 2019

Hi Yinon,

I have a similar issue. I'm writing a REST Endpoint in JIRA ServiceDesk using Scriptrunner that queries Insight. When copying my Groovy script inside the script box all works fine.

However, I want to put this code in a plugin and that's when the trouble started.

Your answer helped me to get everything compiled, but when loading the plugin using the file box in the REST endpoint I still get "unable to resolve class com.riadalabs.jira.plugins.insight.services.model.ObjectBean" in JIRA.

And yes, I have installed the Insight plugin in Jira.

Any ideas?

Thanks, Paul

Like Bohdan Belokur likes this
Daniel Klimuntowski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 22, 2024

Hi,

Does anyone have any idea how to work with Assets Java API in Assets 10.4.6 from Jira Service Management 5.4.6? The riada.io repo is no longer operational; I've found their dependencies on Maven Central, but the oldest is 9.0.7, while Atlassian is already using 10.4.6 and higher.

Their docs are useless - https://confluence.atlassian.com/assetapps/assets-app-development-1168847878.html - what gives?! :(

Regards

Daniel Klimuntowski

Daniel Klimuntowski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 22, 2024
Like Ruiza Cruz likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events