0

我正在为 Servicemix 4.4.0 创建新项目。我的项目将包含几个模块和一个父 pom.xml,这是一个示例:

+- Module1
+- Module2
+- pom.xml (parent)

每个模块都包含引用父 pom 的元素。

我正在考虑在父 pom.xml 中声明所有 Servicemix 依赖项。这样,我将摆脱子模块中的版本。

所以我的问题是,如何在我的父 pom.xml 中包含所有 Servicemix 依赖项而不直接一一键入它们?也许有一种方法可以导入一些 Servicemix 父 pom 或类似的东西?

4

1 回答 1

0

Servicemix4 只是一个 OSGi 容器,已经安装了一堆功能/捆绑包,您不想将所有 Servicemix 依赖项导入到您的项目中。相反,只使用项目所需的依赖项构建项目(使用 maven-bundle-plugin),然后将其部署到 Servicemix4。

有关更多信息,请参阅这些页面...

http://servicemix.apache.org/SMX4/creating-a-bundle-using-maven.html

http://www.consulting-notes.com/2010/08/servicemix-developer-machine-setup.html

如果您只是在寻找最新版本的工件,那么您可以在此处获取它们...

http://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/pom.xml

于 2012-02-15T22:58:43.430 回答