Can I use Spring Scanner 2 with AtlassianPluginsTestRunner?

In our Team we develop Jira Plugins for our companies Jira server.
We explored using OSGi to share Components between two Plugins. For that we have to use the Atlassian Scanner 2, specified in the plugin-context.xml file.
The plugin-context.xml is the same as from
That is:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""

Unfortunately the WiredTest generated by the Atlassian SDK does not work, after I changed the plugin-context.xml and pom.xml to use Spring Scanner 2. The Wired test worked just fine before the switch, the other parts of the plugin do not get broken by switching to Scanner 2.

I get the surefire Error:
java.lang.Throwable: unable to find runner for class: it.comatlasrunner.MyComponentWiredTest

The relevant part of the WiredTest is:

import com.atlassian.plugins.osgi.test.AtlassianPluginsTestRunner;
public class MyComponentWiredTest

Is there a solution for this problem?
Thank you very much for your help

Are you trying to run atlas-integration-test? Last time I looked into it, integration tests were a mess in the 8.0.16 SDK.

I do have 2 plugins that share services (one of the plugins even has a scannedDependency library).
All of our unit tests work fine with @RunWith(MockitoJUnitRunner.class).
Our single integration test class, last I knew, worked with @WebTest({Category.ADMINISTRATION, Category.REST}) - it’s testing a REST API endpoint.

A few things to check:

  1. dependency on test scope
  1. build > jira-maven-plugin > configuration has the dependencies

Thanks for the reply, sorry for the late reply.

I tried my atlas-integration-test with your PluginArtifacts but it still didn’t work.

We will look into it when we eventually have to use and solve it.

I will post here in that case.