Osgi.wiring.package error when starting a custom plugin

I’m trying to run a custom plugin on Jira 8.13 using

atlas-run --product jira -v 8.5.0

but I’m receiving the following error

1 plugin failed to load during Jira startup.

  'com.test.csv.csv-module' - 'CSV Import Module'  failed to load.
          Cannot start plugin: com.test.csv.csv-module
                  Unable to resolve com.test.csv.csv-module [190](R 190.0): missing requirement [com.test.csv-module [190](R 190.0)] osgi.wiring.package;

(osgi.wiring.package=com.atlassian.plugin.automation.core) Unresolved requirements:[[com.test.csv.csv-module [190](R 190.0)] osgi.wiring.package; (osgi.wiring.package=com.atlassian.plugin.automation.core)]

I’m a newbie on developing jira plugins, could you please help me solve this?

Something you can check:

First, make sure that every Service class from Automation is exported as a Service. Otherwise, you cannot use them in your plugin.

Then try to import the required package in the plugin instruction in your pom.xml file, in your case:

    <!-- Ensure plugin is spring powered -->