How to rebuild old plugin for Jira 7? Edited


I have a plugin which is custom built for Jira 6.x and I want to make the same plugin to work for Jira 7.x. What are the ways to do this?

Say the only resource I have is the .jar plugin file which has all the information about classes, dependencies, related to old version of jira. 

If I make changes to the pom.xml file and upload the addon to jira, will it work with Jira 7.x?

Error from Log:

/rest/issueNav/1/issueTable [c.atlassian.ozymandias.SafePluginPointAccess] A LinkageError indicates that plugin code was compiled with outdated versions.  Unable to run plugin code because of 'java.lang.AbstractMethodError - null'.

How can I fix this issue?


1 answer

1 accepted

0 votes
Accepted answer

Nope, you need the source code.  The .jar is compiled code which is referring to librarys that are no longer valid or available.  The pom.xml is an instruction on what to do during compilation and later, changing it in the jar is not going to recompile the code.

You could try a decompiler, but I would look for the code first.

Hey Nick,

I used the decompiler to see through the jar file and found out that there a lot of files insidie it. Unfortunately, I do not posses the source code for this custom plugin, so does that mean there is no way of making this plugin work for new version of Jira?

Probably not, unless you're willing to go over every class in it, decompile them and then rewrite the code and make it compatible.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

914 views 3 9
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