创建具有selenium web驱动程序的OSGIbundle时未解析依赖关系



我正在尝试创建一个具有selenium firefox web驱动程序的OSGI捆绑包。我在maven项目中使用了相同的依赖项,一切都很好。但当我创建bundle时,编译不会产生任何问题。但在安装bundle时,存在一些无法解决的内部依赖关系。maven bundle插件中有一个属性嵌入transitvy。我将其设置为true,这几乎解决了firefox网络驱动程序的所有内部依赖关系。还有一些问题无法解决。

错误:

net.sf.cglib.asm.util -- Cannot be resolved
org.apache.avalon.framework.logger -- Cannot be resolved
org.apache.log -- Cannot be resolved
org.apache.log4j from log4j.over.slf4j (4)
org.apache.tools.ant -- Cannot be resolved
org.apache.tools.ant.types -- Cannot be resolved
org.codehaus.aspectwerkz.hook -- Cannot be resolved
sun.misc -- Cannot be resolved

此外,当我在cglib-nodep.2.1-3.jar中搜索net.sf.cglib.asm.util时,没有这样的类。内部firefox驱动程序使用cglib-nodep.2.1-3.jar。我想2.1-3版本有一些问题。我不知道OSGI是如何解析这个版本名的。

有人能找出可能的问题吗。在哪里可以找到类net.sf.cglib.asm.util?

PS:我使用的是2.25.0版本的firefox驱动程序,它在内部依赖于cglib,并获取它的2.1_3版本。

我认为这是一个不同的问题。你可能想看看这个。http://code.google.com/p/google-guice/issues/detail?id=208

你也面临同样的问题。所以请阅读。这可能会有所帮助。

听起来你正面临这里描述的问题http://spring.io/blog/2009/01/19/exposing-the-boot-classpath-in-osgi/在这里http://blog.meschberger.ch/2008/10/osgi-bundles-require-classes-from.html

最新更新