Forums

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

How to debug a jira 7.3.1 in eclipse?

Dardan
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!
October 6, 2018

Hi everyone, as I'm new in Jira Dev, I need some help from you, pls. I want to debug a Jira instance (Jira 7.3.1) in eclipse, but I don't know how... Only to debug Jira instance locally, do we need always to create a plugin? 

So, which are the steps(from scratch) to follow to be able to debug jira instance (lira 7.3.1) localy?

Thx.  

 

2 answers

0 votes
Dardan
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!
October 6, 2018

Thx, for your support. But, I'm facing another problem. I followed the tutorial https://developer.atlassian.com/server/jira/platform/writing-jira-event-listeners-with-the-atlassian-event-library/, and after I did exactly like described in the tutorial, I got some maven problems(I created  a lira plugin project with command=atlas-create-jira-plugin and than executed the command = atlas-run + atlas-mvn eclipse:eclipse, to make an eclipse project and than imported in eclipse IDE, but I got some problems with pom.xml.): 

 

Project build error: Unresolveable build extension: Plugin com.atlassian.maven.plugins:maven-jira-plugin:6.3.15 or one of its dependencies could not be resolved: Could not find artifact com.atlassian.maven.plugins:maven-jira-plugin:jar:6.3.15 in central (https://repo.maven.apache.org/maven2)

 

Missing artifact com.atlassian.plugin:atlassian-spring-scanner-annotation:jar:1.2.13

Missing artifact com.atlassian.jira:jira-api:jar:7.7.1

Plugin execution not covered by lifecycle configuration: com.atlassian.plugin:atlassian-spring-scanner-maven-plugin:1.2.13:atlassian-spring-scanner (execution: default, phase: process-classes)

Project build error: Unknown packaging: atlassian-plugin

Missing artifact com.google.code.gson:gson:jar:2.2.2-atlassian-1

If you don't have an maven project, than it works otherwise you will get the errors in pom.xml with errors described above. 

Any idea , how can be solved? Thx

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.
October 7, 2018

I think you should create another question with this dependency problem. In this case people, who can help, can see your question and answer. And if another person have a similar problem with debugging, this person will find this question, but there will be an answer for a different question, which is not good.

Anyway I think that when you package your plugin, you do not use the maven from the atlassian-sdk, but from another place. You should set the correct maven location in Eclipse.

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.
October 6, 2018

Hello,

You need to run your Jira in debug mode. You can find how to run Jira in debug mode here:

https://community.atlassian.com/t5/Answers-Developer-Questions/Start-JIRA-in-Debug-Mode/qaq-p/557166

Then create a remote connection in Eclipse: 

Start the debugger using a remote launch configuration and specify the address and port of the remote computer.

That is it.

Suggest an answer

Log in or Sign up to answer