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 https://bitbucket.org/atlassian/atlassian-spring-scanner/src/master/
That is:
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:atlassian-scanner="http://www.atlassian.com/schema/atlassian-scanner/2" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.atlassian.com/schema/atlassian-scanner/2 http://www.atlassian.com/schema/atlassian-scanner/2/atlassian-scanner.xsd"> <atlassian-scanner:scan-indexes/></beans>
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.
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;@RunWith(AtlassianPluginsTestRunner.class)public class MyComponentWiredTest{
Hi,
you might consider adding your question to:
https://community.developer.atlassian.com/
Best
JP
It looks like you're new here. Sign in or register to get started.