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?
Thanks,
Ashutosh
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,
Ashutosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Here is the link - https://community.atlassian.com/t5/Jira-questions/The-type-com-atlassian-jira-entity-WithId-cannot-be-resolved/qaq-p/1520656
Could you please let me know, if you have any idea about resolving package issue?
Thanks,
Ashutosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.