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