atlassian sdk jira plugin spring error

김민주 November 28, 2024

im developing jira plugin with atlassian-sdk.

I'm attaching a spring inside the Jira plug-in. Spring-core and spring-context can be used because they are injected with dependency, but can't I use spring-web? When I use spring-web, it says banned dependency

 

1 answer

0 votes
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 28, 2024

Hi @김민주 

You can successfully use spring-core and spring-context because they are injected via dependency management. However, Atlassian maintains a list of banned dependencies to prevent conflicts and ensure stability. spring-web can introduce classes that are already present in Jira's core, leading to conflicts, so it's a banned dependency.

Since Jira already includes Spring, you can use the existing spring-web components provided by Jira. You can add Import-Package directives to import Spring packages 

<Import-Package>
org.springframework.web.*;resolution:=optional,
org.springframework.beans.*;resolution:=optional,
org.springframework.context.*;resolution:=optional,
*
</Import-Package>

 

김민주 November 28, 2024

@Tuncay Senturk 

Based on the previous responses, i installed my jira addon plugin. but its still not actived. 

error code is

cannot determine required plugins, cannot resolve bundle 'com.myPlugin'

detect an error(BundleException) enabling the plugin 'com.myPlugin' : Unabled to resolve com.myPlugin.

missing requirement osgi.wiring package; (osgi.wiring.package=org.springframework.security.authentication)

 

what is the problem??

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events