Thanks for the suggestion @mkemp I tried to add logging inside the UserManager @Bean method but nothing appears in the Jira logs. I also cannot debug it directly because there isn’t a compatible Atlassian SDK for Jira 11 if I am not mistaken. So it seems the bean method is never actually called during plugin load. I am not really sure what we are missing here.
I believe something similar was already discussed here.
Edit:
<?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>
This and @Named, @Inject annotations probably have solved this problem.