How Can I Access ComponentImport using atlassian-spring-scanner-annotation?

Azhak Anwar November 18, 2024

Good Day!

I'm new to Jira Plugin Development and following a tutorial to kickstart my learning. I'm stuck at the step where the tutorial used the ComponentImport annotator from:

com.atlassian.plugin.spring.scanner.annotation.imports.ComponentImport

using the dependency:

 

        <dependency>
            <groupId>com.atlassian.plugin</groupId>
            <artifactId>atlassian-spring-scanner-annotation</artifactId>
            <version>3.0.3</version>
            <scope>compile</scope>
        </dependency>

I am getting the BannedDependencies exception when I execute atlas-run. 

When I change the version to 4 or 5, I get the message that it is for an updated Java version, not the one I am using.

I have also tried some online solutions like getting the dependency tree using 

atlas-mvn dependency:tree

 

but the atlassian-spring-scanner-annotation is the base dependency and compulsory for ComponentImport. 

 

Other guidelines I got online are too advanced for my expertise. Can someone please suggest how I can use the ComponentImport? Is there any alternative whose dependency is not Banned or is there some way to override the BannedDependency exception as it is only for learning purposes? 

1 answer

1 vote
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 18, 2024

Hi @Azhak Anwar 

For this kind of questions I'd suggest posting on https://community.developer.atlassian.com/ 

Here’s my perspective on this issue: Conflicts often arise when a dependency is already provided by either the Atlassian SDK or the plugin framework you are using. Adding it explicitly can lead to conflicts or trigger rules that prohibit certain dependencies. I believe this is done to prevent P2 plugin developers from experiencing difficulties when bundling dependencies intended for the Atlassian cloud platform.

There is already a thread for this BannedDependencies on developer community.

Azhak Anwar November 25, 2024

Hi @Tuncay Senturk

Thank you for your response. I've already gone through this thread before asking the question here. 

I'll ask it in the Developer community. 

 

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