I've been trying to get the Event Listener sample working. This sample works with the old <component-import> mechanism, yet when I create a new plugin is wants to use the new scanning @ComponentImport mechanism by preventing the <component-import>.
What I'm finding is that when I build the code, the compiler doesn't recognise @ComponentImport....it gives me a "cannot find symbol ComponentImport" error.
Do I need to import a package to the .java file?
As far as I can tell my pom file includes all the scanning stuff I need.
You need to add spring scanner dependency to your plugin. You can find more info here:
https://bitbucket.org/atlassian/atlassian-spring-scanner
I think it is easier to create a new plugin (it will be already created with the required dependency). Then insert your code there.
hi Alexey, thanks for the fast response. This is a new plugin I created this morning using atlas-create-jira-plugin.
All the scanner stuff looks to be setup correctly, but when I add @ComponentImport to a .java file, it doesn't recognise it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where do you open the plugin? Are you sure that all required dependencies were downloaded?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.