Bamboo Plugin Fails to Enable on Bamboo Data Center 10.x - OSGi Issue

We have developed a Bamboo plugin that worked fine on Bamboo 9.x. However, when upgrading to Bamboo Data Center 10.x, we encountered the following error while enabling the plugin:

Error Logs

WARN [UpmAsynchronousTaskManager:thread-2] [DmzResolverHook] Package com.opensymphony.module.propertyset is internal and is not available for export to plugin org.jfrog.bamboo.bamboo-jfrog-plugin
ERROR [UpmAsynchronousTaskManager:thread-2] [OsgiPlugin] Detected an error (BundleException) enabling the plugin 'org.jfrog.bamboo.bamboo-jfrog-plugin' : Unable to resolve org.jfrog.bamboo.bamboo-jfrog-plugin [119](R 119.0): missing requirement [org.jfrog.bamboo.bamboo-jfrog-plugin [119](R 119.0)] osgi.wiring.package; (&(osgi.wiring.package=com.opensymphony.module.propertyset)(version>=1.6.0.atlassian_8)(version<=1.6.0.atlassian_8)) Unresolved requirements: [[org.jfrog.bamboo.bamboo-jfrog-plugin [119](R 119.0)] osgi.wiring.package; (&(osgi.wiring.package=com.opensymphony.module.propertyset)(version>=1.6.0.atlassian_8)(version<=1.6.0.atlassian_8))].  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
WARN [UpmAsynchronousTaskManager:thread-2] [AbstractPlugin] Unable to enable plugin 'org.jfrog.bamboo.bamboo-jfrog-plugin'
WARN [UpmAsynchronousTaskManager:thread-2] [AbstractPlugin] Because of this exception
com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: org.jfrog.bamboo.bamboo-jfrog-plugin
Caused by: org.osgi.framework.BundleException: Unable to resolve org.jfrog.bamboo.bamboo-jfrog-plugin [119](R 119.0): missing requirement [org.jfrog.bamboo.bamboo-jfrog-plugin [119](R 119.0)] osgi.wiring.package; (&(osgi.wiring.package=com.opensymphony.module.propertyset)(version>=1.6.0.atlassian_8)(version<=1.6.0.atlassian_8)) Unresolved requirements: [[org.jfrog.bamboo.bamboo-jfrog-plugin [119](R 119.0)] osgi.wiring.package; (&(osgi.wiring.package=com.opensymphony.module.propertyset)(version>=1.6.0.atlassian_8)(version<=1.6.0.atlassian_8))]

What We’ve Tried So Far

  1. We updated the pom.xml to include necessary dependencies. PR link: here.
  2. We added the following dependency to try and resolve the missing package issue
<dependency>
            <groupId>com.opensymphony.propertyset</groupId>
            <artifactId>propertyset</artifactId>
            <version>1.6.0-atlassian-8</version>
            <type>pom</type>
            <scope>provided</scope>
  </dependency>
  1. We haven’t explicitly taken OSGi compatibility into account so far.

Questions

  • Has anything changed in Bamboo 10.x regarding OSGi package exports?
  • How can we ensure the com.opensymphony.module.propertyset package is available for our plugin?
  • Are there alternative approaches to resolving this dependency in Bamboo Data Center?

Any guidance or insights would be greatly appreciated. Thanks! :rocket:

com.opensymphony.propertyset was removed in Atlassian Platform 7, used by Bamboo 10.0 back in August 2024 and by other Atlassian products. You will need to include your own dependencies and bundle them with your app if you wish to continue using them, or migrate your application to one of the supported dependencies. You can find more about the announcement in: