Projekt-Dokumentation (Aktueller Stand von juplo.de) hinzugefügt
[website] / dist / hibernate4-maven-plugin-1.0.2 / force.html
1 <!DOCTYPE html>
2 <!-- Generated by Apache Maven Doxia Site Renderer 1.4 at 2014-04-29 -->
3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   <!-- Current: force.html -->
4 <!-- Active: index.html -->
5 <!-- Path: [index.html, force.html] -->
6 <!-- Skiplist: [index.html, configuration.html, export-mojo.html, debugging.html, force.html, pitfalls.html] -->
7 <html>
8   <head>
9     <title>juplo - Hibernate 4 Maven Plugin - Force Exceution</title>
10     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
11     <link rel="canonical" href="http://juplo.de/hibernate4-maven-plugin/force.html"/>
12     <meta name="viewport" content="width=device-width, initial-scale=1" />
13     <link rel="stylesheet" type="text/css" href="/css/base.css" />
14     <style type="text/css">
15       @import '/css/screen.css' screen;
16       @import '/css/print.css' print;
17     </style>
18     <script src="/js/base.js"></script>
19     <!--[if IE 8]>
20       <link rel="stylesheet" type="text/css" href="/css/ie8.css" />
21       <script src="/js/ie8.js"></script>
22     <![endif]-->
23     <!--[if IE 7]>
24       <script src="/js/ie7.js"></script>
25     <![endif]-->
26     <!--[if lt IE 7]>
27       <script src="/js/ie6.js"></script>
28     <![endif]-->
29     <meta name="Date-Revision-yyyymmdd" content="20140429" />
30     <meta http-equiv="Content-Language" content="en" />
31         
32   </head>
33   <body id="top" class="menu" onload="prettyPrint()">
34     <div id="page" class="cf">
35       <header id="header">
36         <h1 id="logo"><a href="/" title="Home" class="l">juplo</a></h1>
37         <span id="slogan"><strong>Java</strong> bits from nerds for nerds</span>
38         <hr class="h" />
39       </header>
40       <div id="breadcrumb">
41         <strong class="b title">You are here:</strong>
42         <ol class="b">
43           <li class="b"><a class="b" href="/">Home</a></li>
44           <li class="b"><a class="b" href="/projects.html">Projects</a></li>
45                       <li class="b"><a class="b" href="./index.html">Hibernate 4 Maven Plugin</a </li>
46                         <li class="b"><strong class="b">Force Exceution</strong></li>
47                   </ol>
48         <a class="hide" href="#nav" title="Show navigation menu">Jump to navigation</a>
49         <hr class="b" />
50       </div>
51       <main class="content cf">
52         <section id="content" class="main">
53           <h1>Hibernate 4 Maven Plugin - Force Exceution</h1>
54           <div class="section">
55 <h2>Force execution<a name="Force_execution"></a></h2>
56 <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>
57 <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>
58 <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>
59 <div>
60 <pre>&lt;plugin&gt;
61   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
62   &lt;artifactId&gt;hibernate4-maven-plugin&lt;/artifactId&gt;
63   &lt;version&gt;${project.version}&lt;/version&gt;
64   &lt;configuration&gt;
65     &lt;force&gt;true&lt;/force&gt;
66   &lt;/configuration&gt;
67 &lt;/plugin&gt;</pre></div>
68 <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>
69         </section>
70         <div class="marginal">
71           <nav id="nav">
72             <hr class="n" />
73             <a class="hide" href="#top" title="Show Content">Jump back to the top of the page</a>
74             <h2 class="nav menu">Section-Menu</h2>
75             <ul id="menu">
76               <li class="m blog"><a href="/blog/" class="m">Blog</a></li>
77               <li class="m projects"><a href="/projects.html" class="m selected">Projects</a></li>
78             </ul>
79             <h2 class="nav submenu">
80               <span class="s">Submenu for section</span>
81               <a class="s selected" href="/projects.html">Projects</a>
82             </h2>
83             <ul id="submenu" class="s">
84                                                               <li class="s sub">
85                                           <a class="s selected" href="./index.html">Hibernate 4 Maven Plugin</a>
86                                         <ul class="s active">
87                                                                                                                                                                                                                                                           <li class="s">
88                     <a href="configuration.html" class="s" title="Configuration Examples">Configuration Examples</a>
89                 </li>
90                                                                                                                   <li class="s">
91                     <a href="export-mojo.html" class="s" title="Parameter Documentation">Parameter Documentation</a>
92                 </li>
93                                                                                                                   <li class="s">
94                     <a href="debugging.html" class="s" title="Enable Debug-Output">Enable Debug-Output</a>
95                 </li>
96                                                                                                                         <li class="s">
97               <strong class="s">Force Exceution</strong>
98                 </li>
99                                                                                                                   <li class="s">
100                     <a href="pitfalls.html" class="s" title="Known Pitfalls (FAQ)">Known Pitfalls (FAQ)</a>
101                 </li>
102                                                                                                                                                                                                                                                                                                                                         <li class="s sub">
103                     <a href="project-info.html" class="s" title="Project Information">Project Information</a>
104                 </li>
105                                                                                                                                                                                         <li class="s sub">
106                     <a href="project-reports.html" class="s" title="Project Reports">Project Reports</a>
107                 </li>
108                                                                                               </ul>
109                   </li>
110                                           </ul>
111             <hr class="n" />
112           </nav>
113           <p>
114             <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
115               <img class="poweredBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
116             </a>
117           </p>
118         </div>
119       </main>
120       <footer id="footer">
121         <hr class="f" />
122         <ul id="footerlinks">
123           <li class="f" id="copyright">© <strong>mo</strong> 2013</li>
124           <li class="f"><a class="f" href="/impressum.html">Impressum</a></li>
125           <li class="f about"><a class="f" href="/about.html">About</a></li>
126         </ul>
127       </footer>
128     </div>
129         <script type="text/javascript"><!--//--><![CDATA[//><!--
130       var _gaq = _gaq || [];
131       _gaq.push(['_setAccount', 'UA-571104-3']);
132       _gaq.push(['_trackPageview']);
133       (function() {
134         var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
135         ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
136         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
137       })();
138     //--><!]]>
139       </body>
140 </html>