# OSGI bundle export

**URL:** <https://community.developer.atlassian.com/t/osgi-bundle-export/96325>\
**Category:** Bitbucket Data Center\
**Created:** [October 22, 2025, 9:26am UTC](https://community.developer.atlassian.com/t/osgi-bundle-export/96325 "2025-10-22T09:26:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rob23](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@rob23](https://community.developer.atlassian.com/u/rob23)\
**Post date:** [October 22, 2025, 9:26am UTC](https://community.developer.atlassian.com/t/osgi-bundle-export/96325/1 "2025-10-22T09:26:26Z")

</div>

Hi everyone,

I am developing a plugin for Bitbucket DC 9.6. My question is, if a bundle exports a package (in my case the System Bundle and Atlassian - Spring 5.3.39-atlassian-4 bundle), can that package be imported by the plugin? I also read about platform-public-api… Are only those packages/artifacts available to plugins that are registered there?

Thanks in advance for the clarification

---

<div class="post-metadata">

**Author:** ![khughes](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/khughes/32/37649_2.png) [@khughes](https://community.developer.atlassian.com/u/khughes)\
**Post date:** [December 17, 2025, 6:14am UTC](https://community.developer.atlassian.com/t/osgi-bundle-export/96325/2 "2025-12-17T06:14:11Z")

</div>

Hi @rob23

Yes, your plugin can import any package exported by another bundle (like the System Bundle or Atlassian’s Spring bundle), as long as it’s exported and visible in the OSGi container. However, for stability and support:

- Use only documented public APIs:  
This includes both Atlassian’s platform-public-api and Bitbucket DC’s own public APIs (e.g., `com.atlassian.bitbucket.repository.*`). These are safe and supported for plugin development.

- Avoid internal or undocumented packages:  
Anything under `.internal.` or `.dmz.` or not in the Bitbucket Java API docs may change without notice and isn’t supported.

You must also declare your imports in your plugin’s manifest.

This page might help clarify things too: [https://developer.atlassian.com/server/framework/atlassian-sdk/osgi-spring-and-the-plugin-framework/](https://developer.atlassian.com/server/framework/atlassian-sdk/osgi-spring-and-the-plugin-framework/)

Hope that helps,

Kristy
