How to resolve the Banned Dependencies?

I am trying to build the sample plugin referring the https://developer.atlassian.com/server/framework/atlassian-sdk/create-a-confluence-hello-world-macro/

When running the atlas-run command getting the below error:

[WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:
make sure platform artifacts are not bundled into plugin
Found Banned Dependency: dom4j:dom4j:jar:1.6.1-atlassian-4
Found Banned Dependency: org.springframework:spring-tx:jar:4.3.27.RELEASE
Found Banned Dependency: com.atlassian.sal:sal-api:jar:5.0.1
Found Banned Dependency: org.springframework:spring-core:jar:5.3.9

the java class is using the sal depenedency.

import com.atlassian.sal.api.ApplicationProperties;

not sure how to proceed on the same.

HAve added the dependency in the exclusion list still getting the error.

The default setting or when setting scope = compile, this means take the JAR and include it in your package.

The setting of scope = provided means that Jira/Bitbucket/Confluence/Parent Application already has it and will give it to you.

This helped in resolving the banned dependencies error.

Thanks @sfbehnke for the inputs .

More details refer : Maven bans dependencies with no configuration - #5 by e.tamarin

1 Like