Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Edited

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

1 vote
Answer accepted

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
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

4,419 views 12 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you