Debian Codegraph @

www/index.html

raw
1 <html>
2 <head>
3 <title>JAXB2 Maven2 Plugin</title>
4 <meta name="google-site-verification" content="-CLg7rtXhKW1LC1Y3C0FdYeNdy4Q8Vm9DeXSLDf9P6Q" />
5 </head>
6 <body>
7 <table border="0" cellpadding="2" cellspacing="2"
8 style="page-break-before: always">
9 <tr>
10 <td><img alt="duke" src="https://jaxb.dev.java.net/javaxml-duke.gif"
11 name="Graphic1" align="middle" width="68" height="86" border="0" /></td>
12 <td>
13 <h1>Maven 2 JAXB 2.x Plugin</h1>
14 </td>
15 </tr>
16 </table>
17
18 <p>This Maven 2 plugin wraps the JAXB 2.x XJC compiler and provides the
19 capability to generate java sources from schemas.</p>
20
21 <h3>Quickstart</h3>
22 <ol>
23 <li>
24 <p>Put your schemas (<code>*.xsd</code>) and bindings (<code>*.xjb</code>)
25 into the <code>src/main/resources</code> folder.</p>
26 </li>
27 <li>
28 <p>Add the plugin to your build:</p>
29 <pre><code>&lt;build>
30 &lt;plugins>
31 &lt;plugin>
32 &lt;groupId>org.jvnet.jaxb2.maven2&lt;/groupId>
33 &lt;artifactId>maven-jaxb2-plugin&lt;/artifactId>
34 &lt;executions>
35 &lt;execution>
36 &lt;goals>
37 &lt;goal>generate&lt;/goal>
38 &lt;/goals>
39 &lt;/execution>
40 &lt;/executions>
41 &lt;/plugin>
42 &lt;/plugins>
43 &lt;/build></code></pre>
44 </li>
45 <li>
46 <p>Reconfigure the compiler plugin to use 1.5:</p>
47 <pre><code>&lt;build>
48 &lt;plugins>
49 ...
50 &lt;plugin>
51 &lt;inherited>true&lt;/inherited>
52 &lt;groupId>org.apache.maven.plugins&lt;/groupId>
53 &lt;artifactId>maven-compiler-plugin&lt;/artifactId>
54 &lt;configuration>
55 &lt;source>1.5&lt;/source>
56 &lt;target>1.5&lt;/target>
57 &lt;/configuration>
58 &lt;/plugin>
59 &lt;/plugins>
60 &lt;/build></code></pre>
61 </li>
62 </ol>
63 <p>See the <a href="http://confluence.highsource.org/display/MJIIP/Sample+purchase+order+project">sample purchase order project</a> for example.</p>
64
65 <h3>Project Homepage</h3>
66
67 <p>Maven JAXB2 Plugin project homepage was moved to the following address:</p>
68 <p><a href="http://confluence.highsource.org/display/MJIIP/Maven+JAXB2+Plugin"><b>http://confluence.highsource.org/display/MJIIP/Maven+JAXB2+Plugin</b></a></p>
69
70 <h3>Documentation</h3>
71
72 <p>Maven JAXB2 Plugin documentation can be found here:</p>
73 <p><a href="http://confluence.highsource.org/display/MJIIP/Documentation"><b>http://confluence.highsource.org/display/MJIIP/Documentation</b></a></p>
74 <p>Here's a couple of direct links:</p>
75 <ul>
76 <li>
77 <a href="http://confluence.highsource.org/display/MJIIP/Documentation">Documentation</a>
78 </li>
79 <li>
80 <a href="http://confluence.highsource.org/display/MJIIP/User+Guide">User Guide</a>
81 </li>
82 <li>
83 <a href="http://confluence.highsource.org/display/MJIIP/Quick+Start">Quick Start</a>
84 </li>
85 <li>
86 <a href="http://confluence.highsource.org/display/MJIIP/Sample+Projects">Sample Projects</a>
87 </li>
88 <li>
89 <a href="http://static.highsource.org/mjiip/maven-jaxb2-plugin/generate-mojo.html">Plugin documentation</a>
90 </li>
91 </ul>
92 </body>
93 </html>
94