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?
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.