Projekt-Dokumentation (Aktueller Stand von juplo.de) hinzugefĆ¼gt
[website] / dist / hibernate4-maven-plugin-1.0.1 / force.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
2 <!-- Generated by Apache Maven Doxia at Jan 15, 2013 -->\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\r
4   <head>\r
5     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\r
6     <title>Hibernate 4 Maven Plugin - </title>\r
7     <style type="text/css" media="all">\r
8       @import url("./css/maven-base.css");\r
9       @import url("./css/maven-theme.css");\r
10       @import url("./css/site.css");\r
11     </style>\r
12     <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />\r
13     <meta name="Date-Revision-yyyymmdd" content="20130115" />\r
14     <meta http-equiv="Content-Language" content="en" />\r
15                                                     
16 <script type="text/javascript"><!--
17
18         var _gaq = _gaq || [];
19         _gaq.push(['_setAccount', 'UA-571104-3']);
20         _gaq.push(['_trackPageview']);
21
22         (function() {
23           var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
24           ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
25           var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
26         })();
27
28       //--></script>\r
29                       \r
30   </head>\r
31   <body class="composite">\r
32     <div id="banner">\r
33                     <div id="bannerLeft">\r
34                 Hibernate 4 Maven Plugin\r
35                 </div>\r
36                     <div class="clear">\r
37         <hr/>\r
38       </div>\r
39     </div>\r
40     <div id="breadcrumbs">\r
41             \r
42         \r
43                 <div class="xleft">\r
44         <span id="publishDate">Last Published: 2013-01-15</span>\r
45                   &nbsp;| <span id="projectVersion">Version: 1.0.1</span>\r
46                           |                           <a href="http://juplo.de" class="externalLink" title="juplo">juplo</a>\r
47                           </div>\r
48             <div class="xright">        \r
49         \r
50       </div>\r
51       <div class="clear">\r
52         <hr/>\r
53       </div>\r
54     </div>\r
55     <div id="leftColumn">\r
56       <div id="navcolumn">\r
57              \r
58         \r
59                                 <h5>Overview</h5>\r
60                   <ul>\r
61                   <li class="none">\r
62                           <a href="index.html" title="Introduction">Introduction</a>\r
63             </li>\r
64                   <li class="none">\r
65                           <a href="configuration.html" title="Configuration Examples">Configuration Examples</a>\r
66             </li>\r
67                   <li class="none">\r
68                           <a href="export-mojo.html" title="Parameter Documentation">Parameter Documentation</a>\r
69             </li>\r
70                   <li class="none">\r
71                           <a href="debugging.html" title="Enable Debug-Output">Enable Debug-Output</a>\r
72             </li>\r
73                   <li class="none">\r
74             <strong>Force Exceution</strong>\r
75           </li>\r
76                   <li class="none">\r
77                           <a href="pitfalls.html" title="Known Pitfalls">Known Pitfalls</a>\r
78             </li>\r
79           </ul>\r
80                        <h5>Project Documentation</h5>\r
81                   <ul>\r
82                                                                                                                                                                                                                                                         <li class="collapsed">\r
83                           <a href="project-info.html" title="Project Information">Project Information</a>\r
84                   </li>\r
85                                                                                                                                             <li class="collapsed">\r
86                           <a href="project-reports.html" title="Project Reports">Project Reports</a>\r
87                   </li>\r
88           </ul>\r
89                              <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">\r
90         <img class="poweredBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />\r
91       </a>\r
92                    \r
93         \r
94             </div>\r
95     </div>\r
96     <div id="bodyColumn">\r
97       <div id="contentBox">\r
98         <div class="section"><h2>Force execution<a name="Force_execution"></a></h2><p>The hibernate4-maven-plugin computes MD5-sums for all found annotated classes and stores them together with the generated schema. If no classes were changed or added and the dialect wasn't changed too, it automatically skips the configured schema-export, to speed up the development cycle.</p><p>The plugin signals, that the execution was skipped by setting the maven property <tt>$<a name="hibernate.export.skipped">hibernate.export.skipped</a></tt> to <tt>true</tt>. This may be helpful, because other plugins like <a class="externalLink" href="http://mojo.codehaus.org/dbunit-maven-plugin/">dbunit-plugin</a> <a href="./pitfalls.html#fails">may fail</a>, when the execution is skipped.</p><p>If you need the hibernate4-maven-plugin to <i>never skip automatically</i> execution, you can force it to do so, if you set the parameter <tt>force</tt> to <tt>true</tt>:</p><div><pre>&lt;plugin&gt;
99   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
100   &lt;artifactId&gt;hibernate4-maven-plugin&lt;/artifactId&gt;
101   &lt;version&gt;1.0.1&lt;/version&gt;
102   &lt;configuration&gt;
103     &lt;force&gt;true&lt;/force&gt;
104   &lt;/configuration&gt;
105 &lt;/plugin&gt;</pre></div><p>Or you may specify <tt>-Dhibernate.export.force=true</tt> at the command line, if you want to force hibernate4-maven-plugin only once.</p></div>\r
106       </div>\r
107     </div>\r
108     <div class="clear">\r
109       <hr/>\r
110     </div>\r
111     <div id="footer">\r
112       <div class="xright">Copyright &#169;                   2013.\r
113           All Rights Reserved.      \r
114         \r
115       </div>\r
116       <div class="clear">\r
117         <hr/>\r
118       </div>\r
119     </div>\r
120   </body>\r
121 </html>\r