Integration-Tests are skiped, if "maven.test.skip" is set to true
[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   <p>
8   The hibernate4-maven-plugin computes MD5-sums for all found annotated
9   classes and stores them together with the generated schema.
10   If no classes were changed or added and the dialect wasn't changed too, it
11   automatically skips the configured schema-export, to speed up the development
12   cycle.
13   </p>
14   <p>
15   The plugin signals, that the execution was skipped by setting the maven
16   property <code>$\{hibernate.export.skipped\}</code> to <code>true</code>.
17   This may be helpful, because other plugins like
18   <a href="http://mojo.codehaus.org/dbunit-maven-plugin/">dbunit-plugin</a>
19   <a href="./pitfalls.html#fails">may fail</a>, when the execution is skipped.
20   </p>
21   <p>
22   If you need the hibernate4-maven-plugin to &lt;never skip execution automatically&gt;,
23   you can force it to do so, if you set the parameter <code>force</code> to
24   <code>true</code>:
25   </p>
26   <pre class="prettyprint linenums lang-html">
27 &lt;plugin&gt;
28   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
29   &lt;artifactId&gt;hibernate4-maven-plugin&lt;/artifactId&gt;
30   &lt;version&gt;${project.version}&lt;/version&gt;
31   &lt;configuration&gt;
32     &lt;force&gt;true&lt;/force&gt;
33   &lt;/configuration&gt;
34 &lt;/plugin&gt;</pre>
35   <p>
36   Or you may specify <code>-Dhibernate.export.force=true</code> at the command line,
37   if you want to force hibernate4-maven-plugin only once.
38   </p>
39  </body>
40 </html>