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[
-&lt;plugin&gt;
+<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[&lt;plugin&gt;
        &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
        &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
        &lt;version&gt;${cxf.version}&lt;/version&gt;
@@ -142,14 +140,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
        &lt;/executions&gt;
 &lt;/plugin&gt;
 ]]></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 &lt;sourceRoot&gt; directory that you specify. Each 
&lt;wsdlOption&gt; element corresponds to a WSDL that you're generated 
artifacts for. The WSDL location is specified via the &lt;wsdl&gt; 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 &lt;sourceRoot&gt; 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 &lt;wsdlOption&gt; 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 &lt;sourceRoot&gt; directory that you specify. 
Each &lt;wsdlOption&gt; element corresponds to a WSDL that you're generated 
artifacts for. The WSDL location is specified via the &lt;wsdl&gt; 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 &lt;sourceRoot&gt; 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 &lt;wsdlOption&gt; 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[...
 &lt;configuration&gt;
     
&lt;sourceRoot&gt;${project.build.directory}/generated-code/mywebservice&lt;/sourceRoot&gt;
     &lt;wsdlOptions&gt;
@@ -165,15 +157,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
 &lt;/configuration&gt;
 ...
 ]]></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[
-&lt;configuration&gt;
+</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[&lt;configuration&gt;
   &lt;wsdlOptions&gt;
     &lt;wsdlOption&gt;
       
&lt;wsdl&gt;${basedir}/src/main/resources/wsdl/myService.wsdl&lt;/wsdl&gt;
@@ -184,15 +169,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
   &lt;/wsdlOptions&gt;
 &lt;/configuration&gt;
 ]]></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[
-&lt;configuration&gt;
+</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[&lt;configuration&gt;
   &lt;wsdlOptions&gt;
     &lt;wsdlOption&gt;
       
&lt;wsdl&gt;${basedir}/src/main/resources/wsdl/myService.wsdl&lt;/wsdl&gt;
@@ -204,15 +182,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
   &lt;/wsdlOptions&gt;
 &lt;/configuration&gt;
 ]]></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[
-&lt;configuration&gt;
+</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[&lt;configuration&gt;
   &lt;wsdlOptions&gt;
     &lt;wsdlOption&gt;
       
&lt;wsdl&gt;${basedir}/src/main/resources/wsdl/myService.wsdl&lt;/wsdl&gt;
@@ -221,16 +192,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
   &lt;/wsdlOptions&gt;
 &lt;/configuration&gt;
 ]]></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 &lt;wsdlOption&gt; you can also declare a 
&lt;defaultOption&gt; 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[
-&lt;configuration&gt;
+</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 &lt;wsdlOption&gt; you can also declare a 
&lt;defaultOption&gt; 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[&lt;configuration&gt;
   &lt;defaultOptions&gt;
       &lt;bindingFiles&gt;
           
&lt;bindingFile&gt;${basedir}/src/main/jaxb/bindings.xml&lt;/bindingFile&gt;
@@ -249,17 +212,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
   &lt;/wsdlOptions&gt;
 &lt;/configuration&gt;
 ]]></script>
-</div></div>
-
-<p>&lt;defaultOption&gt; and &lt;wsdlOption&gt; 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[
-&lt;configuration&gt;
+</div></div><p>&lt;defaultOption&gt; and &lt;wsdlOption&gt; 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[&lt;configuration&gt;
   &lt;defaultOptions&gt;
       &lt;bindingFiles&gt;
           
&lt;bindingFile&gt;${basedir}/src/main/jaxb/bindings.xml&lt;/bindingFile&gt;
@@ -272,17 +226,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
   &lt;/includes&gt;
 &lt;/configuration&gt;
 ]]></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 &lt;wsdlArtifact&gt; 
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[
-    &lt;configuration&gt;
+</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 &lt;wsdlArtifact&gt; 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[    &lt;configuration&gt;
      &lt;wsdlOptions&gt;
       &lt;wsdlOption&gt;
        &lt;wsdlArtifact&gt;
@@ -294,22 +239,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
      &lt;/wsdlOptions&gt;
     &lt;/configuration&gt;
 ]]></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 &lt;extraarg&gt; 
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&lt;extension id&gt; </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[
-&lt;plugin&gt;
+</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 &lt;extraarg&gt; 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&lt;extension id&gt;</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[&lt;plugin&gt;
 &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
 &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
 &lt;version&gt;${cxf.version}&lt;/version&gt;
@@ -335,24 +266,15 @@ Apache CXF -- Maven cxf-codegen-plugin (
 &lt;/executions&gt;
 &lt;dependencies&gt;
     &lt;dependency&gt;
-        &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
+        &lt;groupId&gt;org.apache.cxf.xjcplugins&lt;/groupId&gt;
         &lt;artifactId&gt;cxf-xjc-ts&lt;/artifactId&gt;
         &lt;version&gt;${cxf.version}&lt;/version&gt;
      &lt;/dependency&gt;
 &lt;/dependencies&gt;
 &lt;/plugin&gt;
 ]]></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[
-
-&lt;pluginManagement&gt;
+</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[&lt;pluginManagement&gt;
     &lt;plugins&gt;
         &lt;plugin&gt;
             &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
@@ -374,13 +296,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
     &lt;/plugins&gt;
 &lt;/pluginManagement&gt;
 ]]></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[
-&lt;plugins&gt;
+</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[&lt;plugins&gt;
     &lt;plugin&gt;
        &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
        &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
@@ -411,14 +328,8 @@ Apache CXF -- Maven cxf-codegen-plugin (
 &lt;/plugins&gt;
 
 ]]></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[
-
-&lt;plugin&gt;
+</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[&lt;plugin&gt;
     &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
     &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
     &lt;version&gt;${cxf.version}&lt;/version&gt;
@@ -426,7 +337,7 @@ Apache CXF -- Maven cxf-codegen-plugin (
         &lt;fork&gt;once&lt;/fork&gt;
         
&lt;additionalJvmArgs&gt;-Djava.endorsed.dirs=${project.build.directory}/endorsed&lt;/additionalJvmArgs&gt;
         &lt;!-- rest of the normal codegen configuration options --&gt;
-    &lt;/configuraion&gt;
+    &lt;/configuration&gt;
     &lt;dependencies&gt;
         &lt;dependency&gt;
            &lt;groupId&gt;com.sun.xml.bind&lt;/groupId&gt;
@@ -442,15 +353,7 @@ Apache CXF -- Maven cxf-codegen-plugin (
 &lt;/plugin&gt;
 
 ]]></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>&lt;fork&gt;false/always/once&lt;/fork&gt;</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>&lt;additionalJvmArgs&gt;.... </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>&lt;encoding&gt;UTF-8&lt;/encoding&gt;</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>&lt;fork&gt;false/always/once&lt;/fork&gt;</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>&lt;additionalJvmArgs&gt;....</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>&lt;encoding&gt;UTF-8&lt;/encoding&gt;</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>


Reply via email to