4e4fdcbb16b3bd7876576e30df63dff373c6d49c
[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 schema-export, to speed up the development
13   cycle.
14   </p>
15   <p>
16   The plugin signals, that the execution was skipped by setting the maven
17   property <code>${hibernate.schema.skipped}</code> to <code>true</code>.
18   This may be helpful, because other plugins like
19   <a href="http://mojo.codehaus.org/dbunit-maven-plugin/">dbunit-plugin</a>
20   <a href="./pitfalls.html#fails">may fail</a>, when the execution is skipped.
21   </p>
22   <p>
23   If you need the hibernate-maven-plugin to <em>never skip execution automatically</em>,
24   you can force it to do so, if you set the parameter <code>force</code> to
25   <code>true</code>:
26   </p>
27   <pre class="prettyprint linenums lang-html">
28 &lt;plugin&gt;
29   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
30   &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
31   &lt;version&gt;${project.version}&lt;/version&gt;
32   &lt;configuration&gt;
33     &lt;force&gt;true&lt;/force&gt;
34   &lt;/configuration&gt;
35 &lt;/plugin&gt;</pre>
36   <p>
37   Or you may specify <code>-Dhibernate.schema.force=true</code> at the command line,
38   if you want to force hibernate-maven-plugin only once.
39   </p>
40  </body>
41 </html>