I am using Jira 8.12.1 server version. My SSO code already using ComponentAccessor and it was working fine with previous version of Jira 7.
But when we upgraded to 8.12.1 version, getting below error.
it tells me unable to resolve class com.atlassian.jira.component.ComponentAccessor?
However, import com.atlassian.jira.component.ComponentAccessor was working fine with Jira 7.
Even in Jira API document same package is mentioned.
Could you please help?
Please keep posting to me as under my answer and as new answer (to keep the order of things :) )
Now about your pom.xml files, I'm not sure which one of them, but your plugin should have only 1 pom.xml file, (unless this code is extracted from a jar plugin and the original code is not yours)
Thanks @Nir Haimov for your reply.
When I added old Jira 7 jar, its able to get ComponentAccessor and no error in import.
But I am still getting error on package, which is present for both old and new version of Jira.
I have ask question in Atlassian Community for package error.
Could you please let me know, if you have any idea about resolving package issue?
Sorry, but i can't help you that way, you need to access the original code (and not the package from the JAR).
There you should have only 1 pom.xml, main folder with all classes, resources folder with all resources (js, css, etc...)
You are trying to work on the wrong files.
That is why everything breaks for you when you try to change something
Thanks Nir for your reply.
I see three pom.xml at different locations mentioned below.
1> C:\Program Files\Atlassian\Jira\atlassian-jira\META-INF\maven\com.atlassian.jira\jira-webapp-dist
2> C:\Program Files\Atlassian\Jira\atlassian-jira\META-INF\maven\com.atlassian.jira\atlassian-jira-webapp
3> C:\Program Files\Atlassian\Jira\atlassian-jira\WEB-INF\classes\META-INF\maven\com.atlassian.jira\jira-core
I have never updated any pom.xml manually for new version of Jira, or before for old versions as well.
I am not able to attach those files here, please let me know which file content you need, so I can provide to you.
Thanks again for your help,
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events