Author: buildbot
Date: Tue Aug 26 14:47:17 2014
New Revision: 920463
Log:
Production update by buildbot for cxf
Modified:
websites/production/cxf/content/cache/docs.pageCache
websites/production/cxf/content/docs/maven-cxf-codegen-plugin-wsdl-to-java.html
Modified: websites/production/cxf/content/cache/docs.pageCache
==============================================================================
Binary files - no diff available.
Modified:
websites/production/cxf/content/docs/maven-cxf-codegen-plugin-wsdl-to-java.html
==============================================================================
---
websites/production/cxf/content/docs/maven-cxf-codegen-plugin-wsdl-to-java.html
(original)
+++
websites/production/cxf/content/docs/maven-cxf-codegen-plugin-wsdl-to-java.html
Tue Aug 26 14:47:17 2014
@@ -116,10 +116,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
<td height="100%">
<!-- Content -->
<div class="wiki-content">
-<div id="ConfluenceContent"><p>CXF includes a Maven plugin which can generate
java artifacts from WSDL. Here is a simple example:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
-<plugin>
+<div id="ConfluenceContent"><p>CXF includes a Maven plugin which can generate
java artifacts from WSDL. Here is a simple example:</p><div class="code panel
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
@@ -142,14 +140,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
</executions>
</plugin>
]]></script>
-</div></div>
-<p>In this example we're running the wsdl2java goal in the generate-sources
phase. By running <strong>mvn generate-sources</strong>, CXF will generate
artifacts in the <sourceRoot> directory that you specify. Each
<wsdlOption> element corresponds to a WSDL that you're generated
artifacts for. The WSDL location is specified via the <wsdl> option.
Following <a shape="rect" class="external-link"
href="http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html">Maven
standard directory layout</a>, if you're planning on packaging the WSDL in the
JAR you're creating you'll want the WSDL above in /src/main/resources/
(alternatively in a subfolder underneath it if desired to avoid placing
resources in the root of a JAR); else use the /src/main/config folder to keep
the WSDL out of the JAR.</p>
-
-<p>The following example shows some customization options. By default, the
codegen plugin follows the Maven convention of "target/generated-sources/cxf"
for the output folder for the generated classes. You can override this value
using <sourceRoot> as shown below, but note this is usually not
necessary, the default is fine for most people and can make it easier for some
IDE's to detect the generated source code. Other configuration arguments can
be included inside the <wsdlOption> element. These pass arguments to the
tooling and correspond to the options outlined on the <a shape="rect"
href="wsdl-to-java.html">WSDL To Java</a> page.</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
-...
+</div></div><p>In this example we're running the wsdl2java goal in the
generate-sources phase. By running <strong>mvn generate-sources</strong>, CXF
will generate artifacts in the <sourceRoot> directory that you specify.
Each <wsdlOption> element corresponds to a WSDL that you're generated
artifacts for. The WSDL location is specified via the <wsdl> option.
Following <a shape="rect" class="external-link"
href="http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html">Maven
standard directory layout</a>, if you're planning on packaging the WSDL in the
JAR you're creating you'll want the WSDL above in /src/main/resources/
(alternatively in a subfolder underneath it if desired to avoid placing
resources in the root of a JAR); else use the /src/main/config folder to keep
the WSDL out of the JAR.</p><p>The following example shows some customization
options. By default, the codegen plugin follows the Maven convention of
"target/gener
ated-sources/cxf" for the output folder for the generated classes. You can
override this value using <sourceRoot> as shown below, but note this is
usually not necessary, the default is fine for most people and can make it
easier for some IDE's to detect the generated source code. Other configuration
arguments can be included inside the <wsdlOption> element. These pass
arguments to the tooling and correspond to the options outlined on the <a
shape="rect" href="wsdl-to-java.html">WSDL to Java</a> page.</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[...
<configuration>
<sourceRoot>${project.build.directory}/generated-code/mywebservice</sourceRoot>
<wsdlOptions>
@@ -165,15 +157,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
</configuration>
...
]]></script>
-</div></div>
-
-<p>See <a shape="rect" class="external-link"
href="http://www.jroller.com/gmazza/entry/web_service_tutorial"
rel="nofollow">this blog entry</a> for a full service and client example that
uses the cxf-codegen-plugin.</p>
-
-<h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example1:PassinginaJAX-WSBindingfile">Example
1: Passing in a JAX-WS Binding file</h3>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
-<configuration>
+</div></div><p>See <a shape="rect" class="external-link"
href="http://www.jroller.com/gmazza/entry/web_service_tutorial"
rel="nofollow">this blog entry</a> for a full service and client example that
uses the cxf-codegen-plugin.</p><h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example1:PassinginaJAX-WSBindingfile">Example
1: Passing in a JAX-WS Binding file</h3><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<configuration>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/wsdl/myService.wsdl</wsdl>
@@ -184,15 +169,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
</wsdlOptions>
</configuration>
]]></script>
-</div></div>
-
-<p>In this example we're specifying that we want CXF to use our JAX-WS binding
file. Binding files are a way to customize the output of the artifacts that CXF
generates. For instance, it allows you to change the package name CXF uses.</p>
-
-<h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example2:Specifythedatabinding">Example
2: Specify the data binding </h3>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
-<configuration>
+</div></div><p>In this example we're specifying that we want CXF to use our
JAX-WS binding file. Binding files are a way to customize the output of the
artifacts that CXF generates. For instance, it allows you to change the package
name CXF uses.</p><h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example2:Specifythedatabinding">Example
2: Specify the data binding</h3><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<configuration>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/wsdl/myService.wsdl</wsdl>
@@ -204,15 +182,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
</wsdlOptions>
</configuration>
]]></script>
-</div></div>
-
-<p>In this example we're specifying that we want CXF to use our data binding
jibx. You can also using the data binding of xmlbeans, domsources, sdo etc.</p>
-
-<h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example3:Specifyingaservicetogenerateartifactsfor">Example
3: Specifying a service to generate artifacts for</h3>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
-<configuration>
+</div></div><p>In this example we're specifying that we want CXF to use our
data binding jibx. You can also using the data binding of xmlbeans, domsources,
sdo etc.</p><h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example3:Specifyingaservicetogenerateartifactsfor">Example
3: Specifying a service to generate artifacts for</h3><div class="code panel
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<configuration>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/wsdl/myService.wsdl</wsdl>
@@ -221,16 +192,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
</wsdlOptions>
</configuration>
]]></script>
-</div></div>
-<p>In this example we're specifying that we only want to generate artifacts
for the service named "MyWSDLService" in the WSDL.</p>
-
-<p>To avoid copy/paste in multiple <wsdlOption> you can also declare a
<defaultOption> element.</p>
-
-<h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example4:UsingdefaultOptiontoavoidrepetition">Example
4: Using defaultOption to avoid repetition</h3>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
-<configuration>
+</div></div><p>In this example we're specifying that we only want to generate
artifacts for the service named "MyWSDLService" in the WSDL.</p><p>To avoid
copy/paste in multiple <wsdlOption> you can also declare a
<defaultOption> element.</p><h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example4:UsingdefaultOptiontoavoidrepetition">Example
4: Using defaultOption to avoid repetition</h3><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<configuration>
<defaultOptions>
<bindingFiles>
<bindingFile>${basedir}/src/main/jaxb/bindings.xml</bindingFile>
@@ -249,17 +212,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
</wsdlOptions>
</configuration>
]]></script>
-</div></div>
-
-<p><defaultOption> and <wsdlOption> correspond to the options
outlined on the <a shape="rect" href="wsdl-to-java.html">WSDL To Java</a> page,
you may look at <a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/Option.java">http://svn.apache.org/repos/asf/cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/Option.java</a>
for a more detailed description of those parameters.</p>
-
-<p>At least, you can declare a common wsdlRoot folder where you store your
WSDL files and use includes/excludes patterns to select the files to get used
by the code generator</p>
-
-<h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example5:UsingwsdlRootwithincludes/excludespatterns">Example
5: Using wsdlRoot with includes/excludes patterns</h3>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
-<configuration>
+</div></div><p><defaultOption> and <wsdlOption> correspond to the
options outlined on the <a shape="rect" href="wsdl-to-java.html">WSDL to
Java</a> page, you may look at <a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/Option.java">http://svn.apache.org/repos/asf/cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/Option.java</a>
for a more detailed description of those parameters.</p><p>At least, you can
declare a common wsdlRoot folder where you store your WSDL files and use
includes/excludes patterns to select the files to get used by the code
generator</p><h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example5:UsingwsdlRootwithincludes/excludespatterns">Example
5: Using wsdlRoot with includes/excludes patterns</h3><div class="code panel
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<configuration>
<defaultOptions>
<bindingFiles>
<bindingFile>${basedir}/src/main/jaxb/bindings.xml</bindingFile>
@@ -272,17 +226,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
</includes>
</configuration>
]]></script>
-</div></div>
-
-<p>wsdlRoot default value is <code>src/main/resources/wsdl</code> so you may
omit this declaration.</p>
-
-<h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example6:Loadingawsdlfromthemavenrepository">Example
6: Loading a wsdl from the maven repository</h3>
-
-<p>For CXF 2.3 and latter there is a new config element <wsdlArtifact>
which can be used to load a wsdl file from the maven repository.</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
- <configuration>
+</div></div><p>wsdlRoot default value is <code>src/main/resources/wsdl</code>
so you may omit this declaration.</p><h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example6:Loadingawsdlfromthemavenrepository">Example
6: Loading a wsdl from the maven repository</h3><p>For CXF 2.3 and latter
there is a new config element <wsdlArtifact> which can be used to load a
wsdl file from the maven repository.</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[ <configuration>
<wsdlOptions>
<wsdlOption>
<wsdlArtifact>
@@ -294,22 +239,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
</wsdlOptions>
</configuration>
]]></script>
-</div></div>
-
-<p>This will load the wsdl /org/apache/pizza/PizzaService-1.0.0.wsdl into your
local maven repository and generate java code from it.</p>
-
-<h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example7:Usingxjcextensions">Example 7:
Using xjc extensions</h3>
-
-<p>Standard JAXB command-line customizations can be added via <extraarg>
elements, either one per line or comma separated. CXF also offers some JAXB
extensions for the code generation. They have to be added as dependencies and
then activated by using an extraarg with content -xjc-X<extension id> </p>
-
-<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th
colspan="1" rowspan="1" class="confluenceTh"><p> artifact id </p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p> description </p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p> extension id
</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
cxf-xjc-boolean </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
Adds getters for booleans </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> boolean </p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p> cxf-xjc-bug671 </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> Workaroung for JAXB bug 671 </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p> bug671 </p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> cxf-xjc-dv </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p> Default value support </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>
dv </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
cxf-xjc-ts </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Adds
toString to objects </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> ts </p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p> cxf-xjc-wsdlextension </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p> WsdlExtension support </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> wsdlextension
</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
jaxb-fluent-api </p></td><th colspan="1" rowspan="1" class="confluenceTh"><p>
Fluent API for setters </p></th><td colspan="1" rowspan="1"
class="confluenceTd"><p> fluent-api </p></td></tr></tbody></table></div>
-
-
-<p>An example showing attachment of a JAXB binding file and the CXF toString()
extension is below:</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
-<plugin>
+</div></div><p>This will load the wsdl
/org/apache/pizza/PizzaService-1.0.0.wsdl into your local maven repository and
generate java code from it.</p><h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example7:Usingxjcextensions">Example 7:
Using xjc extensions</h3><p>Standard JAXB command-line customizations can be
added via <extraarg> elements, either one per line or comma separated.
CXF also offers some JAXB extensions for the code generation. They have to be
added as dependencies and then activated by using an extraarg with content
-xjc-X<extension id></p><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"><p>artifact id</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>description</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>extension id</p></th></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>cxf-xjc-boolean</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>Adds ge
tters for booleans</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>boolean</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>cxf-xjc-bug671</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>Workaroung for JAXB bug 671</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>bug671</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>cxf-xjc-dv</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>Default value support</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>dv</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>cxf-xjc-ts</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Adds toString to
objects</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>ts</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>cxf-xjc-wsdlextension</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>WsdlExtension support</p></td><td
colspan="1" rowspan="1" class="co
nfluenceTd"><p>wsdlextension</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>jaxb-fluent-api</p></td><th colspan="1" rowspan="1"
class="confluenceTh"><p>Fluent API for setters</p></th><td colspan="1"
rowspan="1"
class="confluenceTd"><p>fluent-api</p></td></tr></tbody></table></div><p>An
example showing attachment of a JAXB binding file and the CXF toString()
extension is below:</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
@@ -335,24 +266,15 @@ Apache CXF -- Maven cxf-codegen-plugin (
</executions>
<dependencies>
<dependency>
- <groupId>org.apache.cxf</groupId>
+ <groupId>org.apache.cxf.xjcplugins</groupId>
<artifactId>cxf-xjc-ts</artifactId>
<version>${cxf.version}</version>
</dependency>
</dependencies>
</plugin>
]]></script>
-</div></div>
-
-
-<h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example8-UsingJAXB/JAX-WS2.2withJava6">Example
8 - Using JAXB/JAX-WS 2.2 with Java 6</h3>
-
-<p>Java 6 includes JAXB/JAX-WS 2.1 API's and a 2.1 implementations. However,
sometimes it's desirable to use JAXB or JAX-WS 2.2 instead to obtain various
bug fixes and enhancements. Using 2.2 with Java 6 and Maven can be a bit
tricky as it requires endorsing the API jars which requires configuration of a
bunch of plugins, requires use of "forking", etc... First off, both Surefire
and the Compiler plugins need to be setup to point at an endorsed dir:</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
-
-<pluginManagement>
+</div></div><h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Example8-UsingJAXB/JAX-WS2.2withJava6">Example
8 - Using JAXB/JAX-WS 2.2 with Java 6</h3><p>Java 6 includes JAXB/JAX-WS 2.1
API's and a 2.1 implementations. However, sometimes it's desirable to use JAXB
or JAX-WS 2.2 instead to obtain various bug fixes and enhancements. Using 2.2
with Java 6 and Maven can be a bit tricky as it requires endorsing the API jars
which requires configuration of a bunch of plugins, requires use of "forking",
etc... First off, both Surefire and the Compiler plugins need to be setup to
point at an endorsed dir:</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -374,13 +296,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
</plugins>
</pluginManagement>
]]></script>
-</div></div>
-
-<p>You will then need to use the maven-dependency-plugin to copy the needed
artifacts into the endorsed.dir:</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
-<plugins>
+</div></div><p>You will then need to use the maven-dependency-plugin to copy
the needed artifacts into the endorsed.dir:</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
@@ -411,14 +328,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
</plugins>
]]></script>
-</div></div>
-
-<p>Finally, you need to do similar setup for the CXF Codegen plugin so it
picks up the 2.2 API's and runtimes:</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
-
-<plugin>
+</div></div><p>Finally, you need to do similar setup for the CXF Codegen
plugin so it picks up the 2.2 API's and runtimes:</p><div class="code panel
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
@@ -426,7 +337,7 @@ Apache CXF -- Maven cxf-codegen-plugin (
<fork>once</fork>
<additionalJvmArgs>-Djava.endorsed.dirs=${project.build.directory}/endorsed</additionalJvmArgs>
<!-- rest of the normal codegen configuration options -->
- </configuraion>
+ </configuration>
<dependencies>
<dependency>
<groupId>com.sun.xml.bind</groupId>
@@ -442,15 +353,7 @@ Apache CXF -- Maven cxf-codegen-plugin (
</plugin>
]]></script>
-</div></div>
-
-
-
-<h3 id="Mavencxf-codegen-plugin(WSDLtoJava)-Otherconfigurationoptions">Other
configuration options</h3>
-
-<p>The cxf-codegen-plugin has some additional configuration options that may
be useful:</p>
-<div class="table-wrap"><table class="confluenceTable"><tbody><tr><td
colspan="1" rowspan="1"
class="confluenceTd"><p><fork>false/always/once</fork></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> Forks a separate JVM for the
code generation </p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><additionalJvmArgs>.... </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p> Additional JVM args set on the forked
process if fork is not false </p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><encoding>UTF-8</encoding></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> (new in 2.6.1, requires
configuring plugin to use very latest JAXB 2.2 impl
jars)</p></td></tr></tbody></table></div>
-</div>
+</div></div><h3
id="Mavencxf-codegen-plugin(WSDLtoJava)-Otherconfigurationoptions">Other
configuration options</h3><p>The cxf-codegen-plugin has some additional
configuration options that may be useful:</p><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><fork>false/always/once</fork></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Forks a separate JVM for the
code generation</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><additionalJvmArgs>....</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>Additional JVM args set on the forked
process if fork is not false</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><encoding>UTF-8</encoding></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>(new in 2.6.1, requires
configuring plugin to use very latest JAXB 2.2 impl
jars)</p></td></tr></tbody></table></div></div>
</div>
<!-- Content -->
</td>