Reworked APT-Documentation: page-titles were missing
[hibernate4-maven-plugin] / src / site / apt / force.apt
1   ---
2   Force execution
3   ---
4   Kai Moritz
5   ---
6
7   The hibernate4-maven-plugin computes MD5-sums for all found annotated
8   classes and stores them together with the generated schema.
9   If no classes were changed or added and the dialect wasn't changed too, it
10   automatically skips the configured schema-export, to speed up the development
11   cycle.
12
13   The plugin signals, that the execution was skipped by setting the maven
14   property <<<${hibernate.export.skipped}>>> to <<<true>>>.
15   This may be helpful, because other plugins like
16   {{{http://mojo.codehaus.org/dbunit-maven-plugin/}dbunit-plugin}}
17   {{{./pitfalls.html#fails}may fail}}, when the execution is skipped.
18
19   If you need the hibernate4-maven-plugin to <never skip execution automatically>,
20   you can force it to do so, if you set the parameter <<<force>>> to
21   <<<true>>>:
22
23 ----------------
24 <plugin>
25   <groupId>de.juplo</groupId>
26   <artifactId>hibernate4-maven-plugin</artifactId>
27   <version>${project.version}</version>
28   <configuration>
29     <force>true</force>
30   </configuration>
31 </plugin>
32 ----------------
33
34   Or you may specify <<<-Dhibernate.export.force=true>>> at the command line,
35   if you want to force hibernate4-maven-plugin only once.