哪个是生成Web服务客户端的最好的maven插件?
我必须生成一个WS客户端,我无法决定使用哪个插件。到目前为止,我的选择是:jaxb2-maven-plugin,axistools-maven-plugin和jaxws-maven-plugin。
I have to generate a WS Client and I can't decide wich plugin to use. Until now my options are: jaxb2-maven-plugin, axistools-maven-plugin and jaxws-maven-plugin.
我必须生成一个WS客户端,我无法决定使用哪个插件。到目前为止,我的选择是:jaxb2-maven-plugin,axistools-maven-plugin和jaxws-maven-plugin。
I have to generate a WS Client and I can't decide wich plugin to use. Until now my options are: jaxb2-maven-plugin, axistools-maven-plugin and jaxws-maven-plugin.
首先, jaxb2-maven-plugin
并非真正用于生成WS客户端。消除。
First, the jaxb2-maven-plugin
is not really intended to generate WS clients. ELIMINATED.
其次,个人我不会仅使用Axis进行客户端开发,所以我不建议使用 axistools-maven-plugin
。消除。
Second, personally I wouldn't use Axis even for client development only so I won't recommend using the axistools-maven-plugin
. ELIMINATED.
这给我们留下了JAX-WS RI和Apache CXF堆栈,以及它们各自的Maven插件: JAX-WS Maven插件(使用JAX-WS Maven插件的说明可以在用法页面)和 cxf-codegen-plugin 。
This leaves us with the JAX-WS RI and the Apache CXF stacks, and their respective Maven plugins: the JAX-WS Maven Plugin (instructions to use the JAX-WS Maven Plugin can be found on the Usage page) and the cxf-codegen-plugin.
关于利弊,我会这样总结:
Regarding the pros and cons, I would summarize them like this:
- JAX-WS RI包含在Java 6中,但文档更粗糙(虽然你会找到很多关于JAX-WS的教程RI也是)。
- 如果你想要超越s,Apache CXF可以更好地记录并提供更大的灵活性pec。
最后,两个选项都不错,所以我建议稍微浏览一下这些链接并提出自己的意见。
At the end, both choices are decent so I suggest to browse the links a bit and to make your own opinion.