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

时间:2016-02-24 09:00:01

标签: osgi jira-plugin

我使用提供的示例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?怎么做?

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

感谢您提出任何建议!

1 个答案:

答案 0 :(得分:3)

这是OSGi的一个错误,主要是:

  1. com.my.soft.my-work-log-plugin导入名为bsh的包(我认为是BeanShell?)。
  2. 任何已安装的软件包都没有导出名为bsh的软件包。
  3. 好像你必须安装BeanShell包,因为这是你的包的依赖。