I’m following this tutorial step by step: https://developer.atlassian.com/server/bitbucket/tutorials-and-examples/controlling-when-pull-requests-can-be-merged/
But I get the following errors when I run atlas-run:
… isAdminMergeCheck.java:[8,52] package org.springframework.beans.factory.annotation does not exist
… IsAdminMergeCheck.java:[9,38] package org.springframework.stereotype does not exist
… IsAdminMergeCheck.java:[13,2] cannot find symbol
symbol: class Component
… IsAdminMergeCheck.java:[18,6] cannot find symbol
symbol: class Autowired
I’m using ATLAS Version: 8.0.7
It looks like the
pom.xml generated by
atlas-create-bitbucket-plugin doesn’t have all the required dependencies. Can you try adding the bellow dependency in the
dependencies section of your
@jthomas Is there a ticket somewhere to fix this? 18 months later and this dependency is still missing.
The published code example (https://bitbucket.org/atlassian/bitbucket-server-example-plugins/src/master/is-admin-merge-check/) doesn’t have this dependency explicitly, yet it works fine, so it seems like there’s something else going on.