I have a project which is build through maven. Each module is built as an osgi bundle.
我有一个通过maven构建的项目。每个模块都构建为osgi包。
Within Eclipse the modules have also the plugin nature. Some modules require external dependencies (log4j, apache commons, ...), which are also available as plugins from a maven repository (for instance the spring enterprise repository, which is also an OBR).
在Eclipse中,模块也具有插件特性。一些模块需要外部依赖(log4j,apache commons,...),它们也可以作为maven存储库的插件(例如spring enterprise repository,也是一个OBR)。
Maven itself has no problem to resolve those dependencies, but how can I convince Eclipse to retrieve and resolve those bundles as plugins using a maven repository (I don't want to make for each of those a wrapper plugin)?
Maven本身没有问题来解决这些依赖关系,但我怎么能说服Eclipse使用maven存储库检索并解析这些bundle作为插件(我不想为每个包装器插件制作)?
Is there a "Maven Provisioner" which could be installed in eclipse?
是否有可以在日食中安装的“Maven Provisioner”?
2 个解决方案
#1
I didn't find anything, so I convinced my colleague to write an eclipse plugin which does exactly this. It is a provisioner which analyzes a m2 repository and pulls in the found osgi plugins from there. It is a alpha version, but you may try it and we are happy to get a response. Just write to info [at] inavare [dot] net
我没有找到任何东西,所以我说服了我的同事写了一个eclipse插件,它正是这样做的。它是一个分析m2存储库并从那里获取找到的osgi插件的供应者。这是一个alpha版本,但您可以尝试一下,我们很乐意得到回复。只需写信息[at] inavare [dot] net
You find the update site here http://repo.openscada.org/eclipse/
您可以在此处找到更新站点http://repo.openscada.org/eclipse/
#2
I guess you're not using a Maven plugin for Eclipse, if that's true you should try the one from Sonatype which in my opinion is the best. It resolves your dependencies, is really stable and has some nice features like the dependency graph tool.
我猜你没有使用Eclipse的Maven插件,如果这是真的你应该尝试Sonatype的那个,在我看来是最好的。它解决了你的依赖关系,非常稳定并且有一些很好的功能,如依赖图工具。
#1
I didn't find anything, so I convinced my colleague to write an eclipse plugin which does exactly this. It is a provisioner which analyzes a m2 repository and pulls in the found osgi plugins from there. It is a alpha version, but you may try it and we are happy to get a response. Just write to info [at] inavare [dot] net
我没有找到任何东西,所以我说服了我的同事写了一个eclipse插件,它正是这样做的。它是一个分析m2存储库并从那里获取找到的osgi插件的供应者。这是一个alpha版本,但您可以尝试一下,我们很乐意得到回复。只需写信息[at] inavare [dot] net
You find the update site here http://repo.openscada.org/eclipse/
您可以在此处找到更新站点http://repo.openscada.org/eclipse/
#2
I guess you're not using a Maven plugin for Eclipse, if that's true you should try the one from Sonatype which in my opinion is the best. It resolves your dependencies, is really stable and has some nice features like the dependency graph tool.
我猜你没有使用Eclipse的Maven插件,如果这是真的你应该尝试Sonatype的那个,在我看来是最好的。它解决了你的依赖关系,非常稳定并且有一些很好的功能,如依赖图工具。