Failed to load plugin - osgi.wiring.package; (osgi.wiring.package=com.atlassian.inject)

Hi Community,

I’m new to this platform, tried my first plugin using atlassian’s tutorial, but getting below error while loading the plugin (atlas-run) command


[INFO] [talledLocalContainer] ___ FAILED PLUGIN REPORT _____________________
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] INFO: Deployment of web application archive [C:\Users\leprakas\leotestplugin\target\container\tomcat8x\cargo-jira-home\webapps\jira.war] has finished in [1,042,643] ms
[INFO] [talledLocalContainer] Aug 30, 2019 11:47:53 AM org.apache.catalina.startup.HostConfig deployDirectory
[INFO] [talledLocalContainer] INFO: Deploying web application directory [C:\Users\leprakas\leotestplugin\target\container\tomcat8x\cargo-jira-home\webapps\host-manager]
[INFO] [talledLocalContainer] 1 plugin failed to load during JIRA startup.
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] ‘com.atlassian.tutorial.leotestplugin’ - ‘leotestplugin’ failed to load.
[INFO] [talledLocalContainer] Cannot start plugin: com.atlassian.tutorial.leotestplugin
[INFO] [talledLocalContainer] Unresolved constraint in bundle com.atlassian.tutorial.leotestplugin [170]: Unable to resolve 170.0: missing requirement [170.0] osgi.wiring.package; (osgi.wiring.package=com.atlassian.inject)
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] It was loaded from C:\Users\leprakas\leotestplugin\target\jira\home\plugins\installed-plugins\leotestplugin-1.0.0-SNAPSHOT.jar
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] ********************************************************************************************************************************************************************************************************

I’m not sure what is the mistake I made, any help or guidance would be helpful

Thanks in advance

Hi, I am not sure but you probably missed <scope>provided</scope> in dependencies. If it doesn’t work try to add this to pom.xml:

<Import-Package>
    !com.atlassian.inject,
    *
</Import-Package>

Thanks @klaudia.brisakova, for your response.
I’ll give a try with your suggestions :slight_smile: