Hey folks,
We’ve recently switched our custom Jira plugins to jira-api 9.12.1 and jira-maven-plugin to 8.14.3.
Our plugins build successfully using atlas-package with Atlassian SDK 8.2.10. However, when we try to install our plugin, it does not get enabled with the following error in the logs:
UpmAsynchronousTaskManager:thread-1 ERROR sxuvmp [c.a.p.osgi.factory.OsgiPlugin] Detected an error (BundleException) enabling the plugin ‘com.fanniemae.atlassian.jira.releases.fmrelease’ : Unable to resolve com.fanniemae.atlassian.jira.releases.fmrelease [353](R 353.0): missing requirement [com.fanniemae.atlassian.jira.releases.fmrelease [353](R 353.0)] osgi.wiring.package; (osgi.wiring.package=com.google.gson) Unresolved requirements: [[com.fanniemae.atlassian.jira.releases.fmrelease [353](R 353.0)] osgi.wiring.package; (osgi.wiring.package=com.google.gson)].
We made sure to add an explicit dependency on gson in our pom.xml:
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.9.1</version>
<scope>provided</scope>
</dependency>
And the Import-Package section is as follows:
<Import-Package>
org.springframework.osgi.*;resolution:="optional",
org.eclipse.gemini.*;resolution:="optional",
*
</Import-Package>
Thank you fir your help ahead of time.