Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to run JIRA plugin from eclipse

Subhajit Bhuiya May 30, 2018

I am using https://developer.atlassian.com/server/framework/atlassian-sdk/developing-a-rest-service-plugin/. I am able to import the project into eclipse and can successfully do  maveen build and maveen install. Now I to run / debug it from eclipse. Can you tell me what will be the goal in the launch config. If you can share a sample launch config, that will be great.

 

Also bydefault the uri to access the rest resource is

http://<host>:5990/jira/rest/myrestresource/1.0/message

Is there any way change it just http://<host>:5990/jira/myrestresource/

1 answer

0 votes
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.
May 30, 2018

You should run it with atlas-run or atlas-debug commands. Then if you made changes to your plugin and packged it, the plugin will be reinstalled automatically.

Subhajit Bhuiya May 30, 2018

I want the break point to hit within my eclipse code. That is not happening with atlas-run. I guess there should be some way to run the plugin from the eclipse. What we need is a proper launch config.

Have you debug the JIRA plugin code from eclipse? If yes, please provide me the steps

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.
May 30, 2018

You should user atlas-debug command to launch Jira. Then you configure debug options in Eclipse (use default port). You can find more info here:

https://www.eclipse.org/community/eclipse_newsletter/2017/june/article1.php

Then you set a breakpoint in your code and execute the required action in Jira.

Subhajit Bhuiya May 30, 2018

Thanks for your answer. https://developer.atlassian.com/server/framework/atlassian-sdk/creating-a-remote-debug-target/ was useful along with your suggestion. Port will be 5005 instead of 8000

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events