Jira plugin development: EventListener not working

Hey,

I wanted to develop a plugin that listens for jira events. Therefore I followed this tutorial (https://developer.atlassian.com/server/jira/platform/writing-jira-event-listeners-with-the-atlassian-event-library/). First I had the error, that the class JiraImport wasn’t found. But I could fix that by adding the following depedency:

com.atlassian.plugin atlassian-spring-scanner-annotation 2.1.8 provided to the pom.xml.

Now everything compiles. But when I create//resolve//close an issue, there is nothing logged to the console as expected in the tutorial. I tried everything I could think of but could not fix it. I repeated the tuorial three times to eliminate any typos on my side but that does not seem to be the problem :frowning:

My EventClass: package de.myCompany.mbhBridge.plugin;import com.atlassian.event.api.EventLi - Pastebin.com
My pom.xml: <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.or - Pastebin.com
My log4j.properties: ###################################################### LOGGING LEVELS####### - Pastebin.com

Thank you for any tips in advance!

From my experience JiraImport doesn’t always work. Try to use @ComponentImport instead.
And I am not quite sure if it should not be marked in the constructor instead of field.
Other than that it looks ok to me.