I followed the following tutorial: https://developer.atlassian.com/server/bitbucket/tutorials-and-examples/controlling-when-pull-requests-can-be-merged/
First of all, just running `atlas-create-bitbucket-plugin` and then `atlas-create-bitbucket-plugin` is working great.
But after adding the IsAdminMergeCheck.java content from the tutorial, I'm getting errors when running `atlas-run`.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project is-admin-merge-check: Compilation failure: Compilation failure:
[ERROR] /.../is-admin-merge-check/src/main/java/com/xxx/bitbucket/merge/checks/IsAdminMergeCheck.java:[9,52] package org.springframework.beans.factory.annotation does not exist
[ERROR] /.../is-admin-merge-check/src/main/java/com/xxx/bitbucket/merge/checks/IsAdminMergeCheck.java:[10,38] package org.springframework.stereotype does not exist
[ERROR] /.../is-admin-merge-check/src/main/java/com/xxx/bitbucket/merge/checks/IsAdminMergeCheck.java:[14,2] cannot find symbol
[ERROR] symbol: class Component
[ERROR] /.../is-admin-merge-check/src/main/java/com/xxx/bitbucket/merge/checks/IsAdminMergeCheck.java:[20,6] cannot find symbol
[ERROR] symbol: class Autowired
[ERROR] location: class com.xxx.bitbucket.merge.checks.IsAdminMergeCheck
Apparently the following dependency is missing from the pom. Seems that overall the tutorial is a bit outdated :(
<dependency>
<groupId>com.atlassian.bitbucket.server</groupId>
<artifactId>bitbucket-page-objects</artifactId>
<scope>provided</scope>
</dependency>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.