Maven 在IntelliJ for OSGi捆绑包上运行测试时出错

Maven 在IntelliJ for OSGi捆绑包上运行测试时出错,maven,intellij-idea,osgi,Maven,Intellij Idea,Osgi,我正在为Linux使用IntelliJ IDEA终极版2018.1.1 在试图对一个由Intellij的OSGi包组成的maven项目运行测试时,我经常遇到下面提到的错误 Error:osgi: [org.wso2.carbon.identity.oauth] In component <name not yet determined>, method framework.authentication.context.method.name.translator, cannot r

我正在为Linux使用IntelliJ IDEA终极版2018.1.1

在试图对一个由Intellij的OSGi包组成的maven项目运行测试时,我经常遇到下面提到的错误

Error:osgi: [org.wso2.carbon.identity.oauth] In component <name not yet determined>, method framework.authentication.context.method.name.translator,  cannot recognize the signature of the descriptor: ()V
Error:osgi: [org.wso2.carbon.identity.oauth] In component class org.wso2.carbon.identity.oauth2.internal.OAuth2ServiceComponent, reference framework.authentication.context.method.name.translator is dynamic but has no unbind method.
Error:osgi: [org.wso2.carbon.identity.oauth] No interface specified on framework.authentication.context.method.name.translator
错误:组件method framework.authentication.context.method.name.translator中的osgi:[org.wso2.carbon.identity.oauth]无法识别描述符的签名:()V
错误:osgi:[org.wso2.carbon.identity.oauth]在组件类org.wso2.carbon.identity.oauth2.internal.OAuth2ServiceComponent中,reference framework.authentication.context.method.name.translator是动态的,但没有解除绑定的方法。
错误:osgi:[org.wso2.carbon.identity.oauth]在framework.authentication.context.method.name.translator上未指定接口

以前有人遇到过这个问题吗?

我找到了一个类似的问题

通过删除项目中的OSGi方面,这个问题得到了解决,并且测试成功


要删除OSGi方面,请转到项目结构->项目设置->方面;选择并删除OSGi方面。

我发现了类似的问题

通过删除项目中的OSGi方面,这个问题得到了解决,并且测试成功


要删除OSGi方面,请转到项目结构->项目设置->方面;选择并删除OSGi方面。

如果重新导入所有项目,问题会再次出现。要永久修复它,请从intellij中删除插件Osmorc。 您可以通过进入Intellij->preferences->Plugins来实现这一点
搜索Osmorc并取消选中该复选框,然后重新启动intellij

如果重新导入所有项目,问题将返回。要永久修复它,请从intellij中删除插件Osmorc。 您可以通过进入Intellij->preferences->Plugins来实现这一点
搜索Osmorc并取消选中复选框并重新启动intellij

从intellij IDEA 2019.2版开始,我无法在已安装的插件下找到Osmorc插件,相反,禁用OSGi插件对我有帮助。

从intellij IDEA 2019.2版开始,我无法在已安装的插件下找到Osmorc插件,禁用OSGi插件对我有帮助。

它看起来有点像你编译的包与你运行测试的包不一样(或不兼容)。它看起来有点像你编译的包与你运行测试的包不一样(或不兼容)。