使用CXF和Spring构建WS需要哪些maven2工件? [英] Which maven2 artifacts are necessary to build a WS with CXF and Spring?
问题描述
我正在尝试使用Spring 3.0和CXF构建WS.我正在按照本文的步骤 http://www.ibm.com /developerworks/library/ws-pojo-springcxf/
但是在那篇文章中,作者假定您已经安装了cxf.我想将CXF嵌入我的.war中.
I'm trying to build a WS with Spring 3.0 and CXF. I'm following the steps of this article http://www.ibm.com/developerworks/library/ws-pojo-springcxf/
But in that article, the authors assume that you have cxf installed. I'd like to embed CXF in my .war.
谢谢.
推荐答案
通常,仅依赖于cxf-rt-frontend-jaxws和cxf-rt-transport-http.几乎所有需要的其他东西都将从这些东西中转移过来. (可能甚至不需要cxf-rt-transport-http),它将覆盖90%的用例.
Normally, just depend on cxf-rt-frontend-jaxws and cxf-rt-transport-http. Pretty much the rest of the stuff needed would be pulled in transitively from those. (might not even need cxf-rt-transport-http) That would cover 90% of the usecases.
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>2.2.5</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>2.2.5</version>
</dependency>
对于WS-Security,WS-RM和JAX-RS等更高级的功能,您将需要添加其他模块.
For more advanced things like WS-Security and WS-RM and JAX-RS, you would need to add additional modules.
这篇关于使用CXF和Spring构建WS需要哪些maven2工件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!