Found Banned Dependency

Hello, i try make plugin, witch will listen events. I used Tutorial

But, i got that errors:

[WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:
make sure platform artifacts are not bundled into plugin
Found Banned Dependency: com.atlassian.plugin:atlassian-spring-scanner-annotation:jar:2.2.1
Found Banned Dependency: com.atlassian.plugin:atlassian-spring-scanner-runtime:jar:2.2.1
Use 'mvn dependency:tree' to locate the source of the banned dependencies.

pom.xml depencies:

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

<dependency>
<groupId>com.atlassian.plugin</groupId>
<artifactId>atlassian-spring-scanner-runtime</artifactId>
<version>2.2.1</version>
<scope>runtime</scope>
</dependency>

Also, i have problem with SDK repo, Intellij IDEA can’t update repository (file://${env.ATLAS_HOME}/repository), i already add to ~/.bashrc ATLAS_HOME location and all permissions setted to my user and group.

Scope of “atlassian-spring-scanner-annotation” should be changed from “compile” to “provided”, this should fix banned dependency problem.