cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache CXF Documentation > Maven Integration and Plugin
Date Wed, 29 Jul 2009 20:53:00 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1519/1/1/_/styles/combined.css?spaceKey=CXF20DOC&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background-color: white" bgcolor="white">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
     <h2><a href="http://cwiki.apache.org/confluence/display/CXF20DOC/Maven+Integration+and+Plugin">Maven
Integration and Plugin</a></h2>
     <h4>Page <b>edited</b> by             <a href="http://cwiki.apache.org/confluence/display/~dkulp">Daniel
Kulp</a>
    </h4>
     
          <br/>
     <div class="notificationGreySide">
         <h1><a name="MavenIntegrationandPlugin-MavenPOMInformation"></a>Maven
POM Information</h1>

<p>To use CXF within Maven, you'll need to declare the CXF dependencies in your POM.
The CXF groupId is "org.apache.cxf". Here is a small example:</p>
<style type="text/css">
@import url(/confluence/download/resources/confluence.ext.code:code/shStyles.css);
</style>
<!--[if IE]>
<style type="text/css">
    .code textarea, .code input { padding: 0 !important; }
</style>
<![endif]-->
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shCore.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushCSharp.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushPhp.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushJScript.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushVb.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushSql.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushXml.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushShell.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushDelphi.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushPython.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushJava.js"></script>
<div class="code">
<textarea name="newcodemacro" class="xml:nocontrols:nogutter" rows="10" readonly="readonly">&lt;properties&gt;
  &lt;cxf.version&gt;2.1.4&lt;/cxf.version&gt;
&lt;properties&gt;

&lt;dependencies&gt;
	&lt;dependency&gt;
		&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
		&lt;artifactId&gt;cxf-rt-frontend-jaxws&lt;/artifactId&gt;
		&lt;version&gt;${cxf.version}&lt;/version&gt;
	&lt;/dependency&gt;
	&lt;dependency&gt;
		&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
		&lt;artifactId&gt;cxf-rt-transports-http&lt;/artifactId&gt;
		&lt;version&gt;${cxf.version}&lt;/version&gt;
	&lt;/dependency&gt;
        &lt;!-- Jetty is needed if you're are not using the CXFServlet --&gt;
	&lt;dependency&gt;
		&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
		&lt;artifactId&gt;cxf-rt-transports-http-jetty&lt;/artifactId&gt;
		&lt;version&gt;${cxf.version}&lt;/version&gt;
	&lt;/dependency&gt;
&lt;/dependencies&gt;</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</div>

<p>For 2.0.6 and later versions, you don't need to specify any repositories as the artifacts
are available in the central repository.   For versions prior to 2.0.6, you'll also need to
add the Apache Incubator Maven repository:</p>
<div class="code">
<textarea name="newcodemacro" class="xml:nocontrols:nogutter" rows="10" readonly="readonly">&lt;repositories&gt;
	&lt;repository&gt;
		&lt;id&gt;apache-snapshots&lt;/id&gt;
		&lt;name&gt;Apache SNAPSHOT Repository&lt;/name&gt;
		&lt;url&gt;http://people.apache.org/repo/m2-snapshot-repository/&lt;/url&gt;
		&lt;snapshots&gt;
			&lt;enabled&gt;true&lt;/enabled&gt;
		&lt;/snapshots&gt;
	&lt;/repository&gt;
	&lt;repository&gt;
		&lt;id&gt;apache-incubating&lt;/id&gt;
		&lt;name&gt;Apache Incubating Repository&lt;/name&gt;
		&lt;url&gt;http://people.apache.org/repo/m2-incubating-repository/&lt;/url&gt;
	&lt;/repository&gt;
        &lt;!-- for jaxb-impl --&gt;
        &lt;repository&gt;
            &lt;id&gt;java.net&lt;/id&gt;
            &lt;url&gt;http://download.java.net/maven/1/&lt;/url&gt;
            &lt;layout&gt;legacy&lt;/layout&gt;
        &lt;/repository&gt;
&lt;/repositories&gt;

&lt;pluginRepositories&gt;
	&lt;pluginRepository&gt;
		&lt;id&gt;apache-plugin-snapshots&lt;/id&gt;
		&lt;name&gt;Apache Maven Plugin Snapshots&lt;/name&gt;
		&lt;url&gt;http://people.apache.org/repo/m2-snapshot-repository&lt;/url&gt;
		&lt;releases&gt;
			&lt;enabled&gt;false&lt;/enabled&gt;
		&lt;/releases&gt;
		&lt;snapshots&gt;
			&lt;enabled&gt;true&lt;/enabled&gt;
		&lt;/snapshots&gt;
	&lt;/pluginRepository&gt;
        &lt;pluginRepository&gt;
               &lt;id&gt;apache-plugin-incubating&lt;/id&gt;
               &lt;name&gt;Apache Plugin Incubating Repository&lt;/name&gt;
               &lt;url&gt;http://people.apache.org/repo/m2-incubating-repository/&lt;/url&gt;
      	&lt;/pluginRepository&gt;
&lt;/pluginRepositories&gt;</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</div>


<p>For information on using Maven with CXF and Tomcat, this <a href="http://www.jroller.com/gmazza/date/20080417"
rel="nofollow">blog entry</a> may be helpful.</p>

<h1><a name="MavenIntegrationandPlugin-MavenPlugin"></a>Maven Plugin</h1>

<h2><a name="MavenIntegrationandPlugin-WSDL2Java"></a>WSDL2Java</h2>

<p>CXF includes a Maven plugin which can generate artifacts from WSDL. Here is a simple
example:</p>
<div class="code">
<textarea name="newcodemacro" class="xml:nocontrols:nogutter" rows="10" readonly="readonly">&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;
	&lt;executions&gt;
		&lt;execution&gt;
			&lt;id&gt;generate-sources&lt;/id&gt;
			&lt;phase&gt;generate-sources&lt;/phase&gt;
			&lt;configuration&gt;
				&lt;sourceRoot&gt;${project.build.directory}/generated/cxf&lt;/sourceRoot&gt;
                               
				&lt;wsdlOptions&gt;
					&lt;wsdlOption&gt;
						&lt;wsdl&gt;${basedir}/src/main/wsdl/myService.wsdl&lt;/wsdl&gt;
					&lt;/wsdlOption&gt;
				&lt;/wsdlOptions&gt;
			&lt;/configuration&gt;
			&lt;goals&gt;
				&lt;goal&gt;wsdl2java&lt;/goal&gt;
			&lt;/goals&gt;
		&lt;/execution&gt;
	&lt;/executions&gt;
&lt;/plugin&gt;</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</div>

<p>In this example we're running the wsdl2java goal in the generate-sources phase. By
running <b>mvn generate-sources</b>, 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. In the above example we're generating we're specifying
the WSDL location via the &lt;wsdl&gt; option.</p>

<p>Other configuration arguments can be include inside the &lt;wsdlOption&gt;
element. These pass arguments to the tooling and correspond to the options outlined on the
<a href="/confluence/display/CXF20DOC/WSDL+to+Java" title="WSDL to Java">WSDL to Java</a>
page.</p>

<p>For CXF 2.1.4 and latter you don't need anymore to specify the &lt;phase&gt;,
as generate-sources is the default.<br/>
For CXF 2.2 and latter you don't even need to specify the &lt;sourceRoot&gt; to match
maven convention for using target/generated-sources/cxf as output folder for generated classes.</p>

<h3><a name="MavenIntegrationandPlugin-Example1%3APassinginaJAXWSBindingfile"></a>Example
1: Passing in a JAX-WS Binding file</h3>

<div class="code">
<textarea name="newcodemacro" class="xml:nocontrols:nogutter" rows="10" readonly="readonly">&lt;configuration&gt;
  &lt;sourceRoot&gt;${basedir}/target/generated/cxf&lt;/sourceRoot&gt;
  &lt;wsdlOptions&gt;
    &lt;wsdlOption&gt;
      &lt;wsdl&gt;${basedir}/src/main/wsdl/myService.wsdl&lt;/wsdl&gt;
      &lt;bindingFiles&gt;
        &lt;bindingFile&gt;${basedir}/src/main/resources/wsdl/async_binding.xml&lt;/bindingFile&gt;
      &lt;/bindingFiles&gt;
    &lt;/wsdlOption&gt;
  &lt;/wsdlOptions&gt;
&lt;/configuration&gt;</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</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><a name="MavenIntegrationandPlugin-Example2%3ASpecifyingaservicetogenerateartifactsfor"></a>Example
2: Specifying a service to generate artifacts for</h3>

<div class="code">
<textarea name="newcodemacro" class="xml:nocontrols:nogutter" rows="10" readonly="readonly">&lt;configuration&gt;
  &lt;sourceRoot&gt;${basedir}/target/generated/src/main/java&lt;/sourceRoot&gt;
  &lt;wsdlOptions&gt;
    &lt;wsdlOption&gt;
      &lt;wsdl&gt;${basedir}/src/main/wsdl/myService.wsdl&lt;/wsdl&gt;
      &lt;serviceName&gt;MyWSDLService&lt;/serviceName&gt;
    &lt;/wsdlOption&gt;
  &lt;/wsdlOptions&gt;
&lt;/configuration&gt;</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</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><a name="MavenIntegrationandPlugin-Example3%3AUsingdefaultOptiontoavoidrepetition"></a>Example
3: Using defaultOption to avoid repetition</h3>

<div class="code">
<textarea name="newcodemacro" class="xml:nocontrols:nogutter" rows="10" readonly="readonly">&lt;configuration&gt;
  &lt;sourceRoot&gt;${basedir}/target/generated/cxf&lt;/sourceRoot&gt;
  &lt;defaultOptions&gt;
      &lt;bindingFiles&gt;
          &lt;bindingFile&gt;${basedir}/src/main/jaxb/bindings.xml&lt;/bindingFile&gt;
      &lt;/bindingFiles&gt;
      &lt;noAddressBinding&gt;true&lt;/noAddressBinding&gt;
  &lt;/defaultOptions&gt;
  &lt;wsdlOptions&gt;
      &lt;wsdlOption&gt;
          &lt;wsdl&gt;${basedir}/src/main/wsdl/myService.wsdl&lt;/wsdl&gt;
          &lt;serviceName&gt;MyWSDLService&lt;/serviceName&gt;
      &lt;/wsdlOption&gt;
      &lt;wsdlOption&gt;
          &lt;wsdl&gt;${basedir}/src/main/wsdl/myOtherService.wsdl&lt;/wsdl&gt;
          &lt;serviceName&gt;MyOtherWSDLService&lt;/serviceName&gt;
      &lt;/wsdlOption&gt;
  &lt;/wsdlOptions&gt;
&lt;/configuration&gt;</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</div>


<p>&lt;defaultOption&gt; and &lt;wsdlOption&gt; correspond to the options
outlined on the <a href="/confluence/display/CXF20DOC/WSDL+to+Java" title="WSDL to Java">WSDL
to Java</a> page, you may look at <a href="http://svn.apache.org/repos/asf/cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/Option.java"
rel="nofollow">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><a name="MavenIntegrationandPlugin-Example4%3AUsingwsdlRootwithincludes%2Fexcludespatterns"></a>Example
4: Using wsdlRoot with includes/excludes patterns</h3>

<div class="code">
<textarea name="newcodemacro" class="xml:nocontrols:nogutter" rows="10" readonly="readonly">&lt;configuration&gt;
  &lt;sourceRoot&gt;${basedir}/target/generated/cxf&lt;/sourceRoot&gt;
  &lt;defaultOptions&gt;
      &lt;bindingFiles&gt;
          &lt;bindingFile&gt;${basedir}/src/main/jaxb/bindings.xml&lt;/bindingFile&gt;
      &lt;/bindingFiles&gt;
      &lt;noAddressBinding&gt;true&lt;/noAddressBinding&gt;
  &lt;/defaultOptions&gt;
  &lt;wsdlRoot&gt;${basedir}/src/main/resources/wsdl&lt;/wsdlRoot&gt;
  &lt;includes&gt;
      &lt;include&gt;*Service.wsdl&lt;/include&gt;
  &lt;/includes&gt;
&lt;/configuration&gt;</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</div>


<p>wsdlRoot default value is <tt>src/main/resources/wsdl</tt> so you may
omit this declaration.</p>

<h2><a name="MavenIntegrationandPlugin-Java2WSDL%28CXF2.0.xonly.Removedin2.1andreplacedwithJava2WS.%29"></a>Java2WSDL
 (CXF 2.0.x only.  Removed in 2.1 and replaced with Java2WS.)</h2>

<p>CXF also includes a Maven plugin which can generate WSDL from Java code. Here is
a simple example:</p>
<div class="code">
<textarea name="newcodemacro" class="xml:nocontrols:nogutter" rows="10" readonly="readonly">&lt;plugin&gt;
  &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
  &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
  &lt;version&gt;2.0.9&lt;/version&gt;
  &lt;dependencies&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
      &lt;artifactId&gt;cxf-rt-frontend-jaxws&lt;/artifactId&gt;
      &lt;version&gt;2.0.9&lt;/version&gt;
    &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;executions&gt;
    &lt;execution&gt;
      &lt;id&gt;generate-wsdl&lt;/id&gt;
      &lt;phase&gt;process-classes&lt;/phase&gt;
      &lt;configuration&gt;
        &lt;className&gt;org.example.MyService&lt;/className&gt;
      &lt;/configuration&gt;
      &lt;goals&gt;
        &lt;goal&gt;java2wsdl&lt;/goal&gt;
      &lt;/goals&gt;
    &lt;/execution&gt;
  &lt;/executions&gt;
&lt;/plugin&gt;</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</div>

<p>Here are the options you can use:</p>
<div class="code">
<textarea name="newcodemacro" class="java:nocontrols:nogutter" rows="10" readonly="readonly">&lt;configuration&gt;
   &lt;className&gt;...&lt;/className&gt;
   &lt;classpath&gt;...&lt;/classpath&gt;
   &lt;outputFile&gt;...&lt;/outputFile&gt;
   &lt;serviceName&gt;...&lt;/serviceName&gt;
   &lt;soap12&gt;...&lt;/soap12&gt;
   &lt;targetNameSpace&gt;...&lt;/targetNameSpace&gt;
   &lt;verbose&gt;...&lt;/verbose&gt;
   &lt;quiet&gt;...&lt;/quiet&gt;
&lt;/configuration&gt;</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</div>


<h2><a name="MavenIntegrationandPlugin-Java2WS"></a>Java2WS</h2>

<p>This plugin can generate WSDL, server side code used to start web service and client
side code from<br/>
a java class.<br/>
Here is a simple example:</p>
<div class="code">
<textarea name="newcodemacro" class="xml:nocontrols:nogutter" rows="10" readonly="readonly">&lt;plugin&gt;
	&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
	&lt;artifactId&gt;cxf-java2ws-plugin&lt;/artifactId&gt;
	&lt;version&gt;2.1.3&lt;/version&gt;
	&lt;dependencies&gt;
		&lt;dependency&gt;
			&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
			&lt;artifactId&gt;cxf-rt-frontend-jaxws&lt;/artifactId&gt;
			&lt;version&gt;2.1.3&lt;/version&gt;
		&lt;/dependency&gt;
		&lt;dependency&gt;
			&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
			&lt;artifactId&gt;cxf-rt-frontend-simple&lt;/artifactId&gt;
			&lt;version&gt;2.1.3&lt;/version&gt;
		&lt;/dependency&gt;
	&lt;/dependencies&gt;

	&lt;executions&gt;
		&lt;execution&gt;
			&lt;id&gt;process-classes&lt;/id&gt;
			&lt;phase&gt;process-classes&lt;/phase&gt;
			&lt;configuration&gt;
				&lt;className&gt;org.apache.hello_world.Greeter&lt;/className&gt;
				&lt;genWsdl&gt;true&lt;/genWsdl&gt;
				&lt;verbose&gt;true&lt;/verbose&gt;
			&lt;/configuration&gt;
			&lt;goals&gt;
				&lt;goal&gt;java2ws&lt;/goal&gt;
			&lt;/goals&gt;
		&lt;/execution&gt;
	&lt;/executions&gt;
&lt;/plugin&gt;</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</div>

<p>Here are the options you can use:</p>
<div class="code">
<textarea name="newcodemacro" class="java:nocontrols:nogutter" rows="10" readonly="readonly">&lt;configuration&gt;
   &lt;className&gt;...&lt;/className&gt;
   &lt;classpath&gt;...&lt;/classpath&gt;
   &lt;outputFile&gt;...&lt;/outputFile&gt;
   &lt;genWsdl&gt;..&lt;/genWsdl&gt;
   &lt;genServer&gt;..&lt;/genServer&gt;
   &lt;genClient&gt;..&lt;/genClient&gt;
   &lt;genWrapperbean&gt;..&lt;/genWrapperbean&gt;
   &lt;frontend&gt;...&lt;/frontend&gt;
   &lt;databinding&gt;...&lt;/databinding&gt;
   &lt;serviceName&gt;...&lt;/serviceName&gt;
   &lt;soap12&gt;...&lt;/soap12&gt;
   &lt;targetNameSpace&gt;...&lt;/targetNameSpace&gt;
   &lt;verbose&gt;...&lt;/verbose&gt;
   &lt;quiet&gt;...&lt;/quiet&gt;
&lt;/configuration&gt;</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</div>

<p>The outputFile value by default will be:</p>
<div class="code">
<textarea name="newcodemacro" class="java:nocontrols:nogutter" rows="10" readonly="readonly">{project.build.directory}/generated/wsdl/{className}.wsdl</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</div>

<p>Refer to this link <a href="http://cwiki.apache.org/CXF20DOC/java-to-ws.html"
rel="nofollow">http://cwiki.apache.org/CXF20DOC/java-to-ws.html</a> for other options
detailed usage.</p>
     </div>
     <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>

       <a href="http://cwiki.apache.org/confluence/display/CXF20DOC/Maven+Integration+and+Plugin">View
Online</a>
       |
       <a href="http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=49555&revisedVersion=22&originalVersion=21">View
Change</a>
              |
       <a href="http://cwiki.apache.org/confluence/display/CXF20DOC/Maven+Integration+and+Plugin?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message