Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

"package org.springframework..." does not exist when following bitbucket plugin tutorial

Liri Sokol July 25, 2019

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

1 answer

1 accepted

2 votes
Answer accepted
Liri Sokol July 25, 2019

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>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events