如何阅读失败的插件报告?

How to read failed plugin report?

我正在使用提供的示例创建简单的插件 here - 简单的 servlet。据我所知,JIRA 插件是基于 OSGi 框架的。

在部署我的插件(atlas-run 命令)期间,我收到了我无法理解的错误消息。这是我在控制台上找到的输出:

[INFO] [talledLocalContainer]     ********************************************************************************************************************************************************************************************************
[INFO] [talledLocalContainer]     ___ FAILED PLUGIN REPORT _____________________
[INFO] [talledLocalContainer]     
[INFO] [talledLocalContainer]     1 plugin failed to load during JIRA startup.
[INFO] [talledLocalContainer]     
[INFO] [talledLocalContainer]       'com.my.soft.my-work-log-plugin' - 'My Work Log Plugin'  failed to load.
[INFO] [talledLocalContainer]           Cannot start plugin: com.my.soft.my-work-log-plugin
[INFO] [talledLocalContainer]               Unresolved constraint in bundle com.my.soft.my-work-log-plugin [164]: Unable to resolve 164.0: missing requirement [164.0] osgi.wiring.package; (osgi.wiring.package=bsh)
[INFO] [talledLocalContainer]     
[INFO] [talledLocalContainer]           It was loaded from C:\Users\pduleba\work\repo\my-jira\my-software-maven-plugins\my-software-jira-plugins\my-work-log-plugin\target\jira\home\plugins\installed-plugins\my-work-log-plugin-1.0.0-SNAPSHOT.jar
[INFO] [talledLocalContainer]     
[INFO] [talledLocalContainer]     ********************************************************************************************************************************************************************************************************

这是什么意思:

Unresolved constraint in bundle com.my.soft.my-work-log-plugin [164]: Unable to resolve 164.0: missing requirement [164.0] osgi.wiring.package; (osgi.wiring.package=bsh)

有什么方法可以更改日志级别,即 DEBUG?怎么做?

在哪里可以找到更有意义的日志?

感谢您的任何建议!

这是 OSGi 的一个错误,本质上说:

  1. bundle com.my.soft.my-work-log-plugin 导入了一个名为 bsh 的包(我认为这是 BeanShell?)。
  2. 任何已安装的包都没有导出名为 bsh 的包。

看来您必须安装 BeanShell 包,因为这是您的包的依赖项。