WIP:site
[hibernate4-maven-plugin] / src / site / xhtml / force.xhtml
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3  <head>
4  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5  </head>
6  <body>
7   <header><h1>Force Execution</h1></header>
8   <p>
9   The hibernate-maven-plugin computes MD5-sums for all found annotated
10   classes and stores them together with the generated schema.
11   If no classes were changed or added and the dialect wasn't changed too, it
12   automatically skips the configured SQL-generation &mdash; and more
13   important in this respect &mdash; the execution of the generated SQL,
14   to speed up the development cycle.
15   </p>
16   <p>
17   The plugin signals, that the execution was skipped by setting the maven
18   property <code>${hibernate.schema.skipped}</code> to <code>true</code>.
19   This may be helpful, because other plugins like
20   <a href="http://mojo.codehaus.org/dbunit-maven-plugin/">dbunit-plugin</a>
21   <a href="./pitfalls.html#fails">may fail</a>, when the execution is skipped.
22   </p>
23   <p>
24   If you need the hibernate-maven-plugin to <em>never skip execution automatically</em>,
25   you can force it to do so, if you set the parameter <code>force</code> to
26   <code>true</code>:
27   </p>
28   <pre class="prettyprint linenums lang-html">
29 &lt;plugin&gt;
30   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
31   &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
32   &lt;version&gt;${project.version}&lt;/version&gt;
33   &lt;configuration&gt;
34     &lt;force&gt;true&lt;/force&gt;
35   &lt;/configuration&gt;
36 &lt;/plugin&gt;</pre>
37   <p>
38   Or you may specify <code>-Dhibernate.schema.force=true</code> at the command line,
39   if you want to force hibernate-maven-plugin only once.
40   </p>
41  </body>
42 </html>