I am developing plugin for Jira Data Center and currently i have version 10.0.0 (to be specific * v10.0.0-m0004) and i am using GreenHopperCacheManager to handle some caches in my plugin, and in order to use that class i have this in my pom.xml
<Import-Package>com.atlassian.greenhopper.*; resolution:="mandatory", *</Import-Package>
but when i try to upload i have following error
Unable to resolve resource com.adriian.myplugin because it is exposed to package 'javax.ws.rs' from resources com.atlassian.plugins.rest.atlassian-rest-module [com.atlassian.plugins.rest.atlassian-rest-module [158](R 158.0)] and com.atlassian.plugins.rest.atlassian-rest-v2-plugin [com.atlassian.plugins.rest.atlassian-rest-v2-plugin [159](R 159.0)] via two dependency chains.
Chain 1:
com.adriian.myplugin [com.adriian.myplugin [264](R 264.0)]
import: (osgi.wiring.package=javax.ws.rs)
|
export: osgi.wiring.package: javax.ws.rs
com.atlassian.plugins.rest.atlassian-rest-module [com.atlassian.plugins.rest.atlassian-rest-module [158](R 158.0)]
Chain 2:
com.adriian.myplugin [com.adriian.myplugin [264](R 264.0)]
import: (osgi.wiring.package=com.atlassian.greenhopper.service)
|
export: osgi.wiring.package=com.atlassian.greenhopper.service; uses:=javax.ws.rs
com.pyxis.greenhopper.jira [com.pyxis.greenhopper.jira [190](R 190.0)]
import: (osgi.wiring.package=javax.ws.rs)
|
export: osgi.wiring.package: javax.ws.rs
com.atlassian.plugins.rest.atlassian-rest-v2-plugin [com.atlassian.plugins.rest.atlassian-rest-v2-plugin [159](R 159.0)] Unresolved requirements: [[com.adriian.myplugin [264](R 264.0)] osgi.wiring.package; (osgi.wiring.package=com.atlassian.greenhopper.service)]. This error usually occurs when your plugin imports a package from another bundle with a specific version constraint and either the bundle providing that package doesn't meet those version constraints, or there is no bundle available that provides the specified package. For more details on how to fix this, see https://developer.atlassian.com/x/mQAN
and because of that error i dont have GreenHopperCacheManager bean in context.
I`ve found similiar issue but related to Confluence, but as @MarekTokarski said, it was on Confluence side.
@MarekTokarski or anyone else , do you know something about this or how it can be fixed