cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache CXF > cxf-xjc-plugin
Date Fri, 22 Oct 2010 18:24:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/15/_/styles/combined.css?spaceKey=CXF&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/CXF/cxf-xjc-plugin">cxf-xjc-plugin</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://cwiki.apache.org/confluence/display/~dkulp">Daniel
Kulp</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <h2><a name="cxf-xjc-plugin-TheCXFXJCMavenPlugin"></a>The CXF 
XJC Maven Plugin</h2>

<p>The CXF  XJC Maven Plugin is a wrapper around the JAXB XJC tool to handle the XSD
-&gt; Java tasks.</p>

<p>There are two targets:</p>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<td class='confluenceTd'> xsdtojava </td>
<td class='confluenceTd'> Defaults into generate-sources phase and outputs to ${project.build.directory}/generated/src/main/java
</td>
</tr>
<tr>
<td class='confluenceTd'> xsdtojava-tests </td>
<td class='confluenceTd'> Defaults into generate-test-sources phase and outputs to ${project.build.directory}/generated/src/test/java
</td>
</tr>
</tbody></table>
</div>



<p>Parameters</p>
<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<td class='confluenceTd'> extensions </td>
<td class='confluenceTd'> List of maven artifacts to add to the extension classpath.
 Each item in the list is a string of groupId:artifactId:version.</td>
</tr>
<tr>
<td class='confluenceTd'> xsdOptions </td>
<td class='confluenceTd'> List of XsdOption objects.  See below. </td>
</tr>
<tr>
<td class='confluenceTd'>sourceRoot/testSourceRoot </td>
<td class='confluenceTd'> For the two targets above, override the default output directory.
</td>
</tr>
</tbody></table>
</div>



<p>The XsdOption object is used to pass specific options and configuration for each
XSD file that is to be processed. </p>
<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<td class='confluenceTd'>xsd</td>
<td class='confluenceTd'> The location of the schema to process. </td>
</tr>
<tr>
<td class='confluenceTd'>bindingFile</td>
<td class='confluenceTd'> The location of the JAXB binding file to customize the output.
</td>
</tr>
<tr>
<td class='confluenceTd'>packagename</td>
<td class='confluenceTd'>  Specifies the package name to use for the outputted code.
</td>
</tr>
<tr>
<td class='confluenceTd'>extension</td>
<td class='confluenceTd'> (boolean) Turns on the custom JAXB implementation extensions.
</td>
</tr>
<tr>
<td class='confluenceTd'>catalog</td>
<td class='confluenceTd'> The location of a catalog file for mapping schema locations.
</td>
</tr>
<tr>
<td class='confluenceTd'>extensionArgs</td>
<td class='confluenceTd'> List of additional  arguements passed to XJC.  (ex:  -Xlocator)
 </td>
</tr>
<tr>
<td class='confluenceTd'>dependencies</td>
<td class='confluenceTd'> List of files that are examined to determine if subsequent
runs of the plugin must re-generate code. </td>
</tr>
<tr>
<td class='confluenceTd'>deleteDirs</td>
<td class='confluenceTd'> List of directories that are removed after generation.   If
you have schemas that generate code that has already been generated, (possibly in a different
maven module)  you can specify this to have them removed.   The preferred method to do this,
however, is a binding file with the "skip" flag set on those namespaces.</td>
</tr>
</tbody></table>
</div>

    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
       <a href="https://cwiki.apache.org/confluence/display/CXF/cxf-xjc-plugin">View
Online</a>
              |
       <a href="https://cwiki.apache.org/confluence/display/CXF/cxf-xjc-plugin?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message