hello community, I was following this guide on creating advanced blueprints for Confluence Server. The last part of the guide implements a Java class that has an event listener, and the guide includes a couple component and component-import lines in the atlassian-plugin.xml
<component-import key="eventPublisher" interface="com.atlassian.event.api.EventPublisher"/> <component key="eventListener" class="com.example.plugins.tutorial.confluence.simplebp.MyBlueprintListener"/>
I am aware that the Atlassian Spring Scanner does not use these component statements anymore and I have followed this documentation to replace them with proper annotations and remove the .xml import lines from atlassian-plugin.xml
With these annotations added when I enter the
atlas-run command, the plugin is “loaded” however the blueprint does not appear in the Create(…) menu
However if I omit line 15
@Named("MyBlueprintListener") The blueprint appears again in the menu but the java class is not implemented, no log message is made.
For reference I am using Atlassian Spring Scanner 1 not 2 and I have double checked my dependencies in my pom.xml. The skeleton code for the blueprint was generated using
I am at a loss as to why this is not working. Any help would be appreciated.