Projekt-Dokumentation (Aktueller Stand von juplo.de) hinzugefĆ¼gt
[website] / dist / hibernate-maven-plugin-2.0.0 / force.html
1 <!DOCTYPE html>
2 <!-- Generated by Apache Maven Doxia Site Renderer 1.6 at 2016-03-09 -->
3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       <!-- Current: force.html -->
4 <!-- Active: index.html -->
5 <!-- Path: [index.html, force.html] -->
6 <!-- Skiplist: [index.html, configuration.html, create-mojo.html, drop-mojo.html, debugging.html, skip.html, force.html, pitfalls.html] -->
7 <html>
8   <head>
9     <title>juplo - Hibernate 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/hibernate-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     </style>
17     <script src="/js/prettify.js"></script>
18     <!--[if lt IE 9]>
19       <script src="/js/html5shiv.js"></script>
20     <![endif]-->
21     <!--[if IE 8]>
22       <link rel="stylesheet" type="text/css" href="/css/ie8.css" />
23     <![endif]-->
24         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
25   </head>
26   <body class="menu" onload="prettyPrint()">
27     <div id="page" class="cf">
28       <header id="header">
29         <h1 id="logo"><a href="/" title="Home" class="l">juplo</a></h1>
30         <span id="slogan"><strong>Java</strong> bits from nerds for nerds</span>
31         <hr class="h" />
32       </header>
33       <div id="breadcrumb">
34         <strong class="b title">You are here:</strong>
35         <ol class="b">
36           <li class="b"><a class="b" href="/">Home</a></li>
37           <li class="b"><a class="b" href="/projects.html">Projects</a></li>
38                       <li class="b"><a class="b" href="./index.html">Hibernate Maven Plugin</a></li>
39                         <li class="b"><strong class="b">Force Exceution</strong></li>
40                   </ol>
41         <a class="hide" href="#navigation">Jump to navigation</a>
42         <hr class="b" />
43       </div>
44       <main class="content cf">
45         <article id="content" class="main">
46           <header><h1>Force Exceution</h1></header>
47           
48  
49  
50   
51 <p>
52   The hibernate-maven-plugin computes MD5-sums for all found annotated
53   classes and stores them together with the generated schema.
54   If no classes were changed or added and the dialect wasn't changed too, it
55   automatically skips the configured schema-export, to speed up the development
56   cycle.
57   </p>
58   
59 <p>
60   The plugin signals, that the execution was skipped by setting the maven
61   property <tt>${hibernate.schema.skipped}</tt> to <tt>true</tt>.
62   This may be helpful, because other plugins like
63   <a class="externalLink" href="http://mojo.codehaus.org/dbunit-maven-plugin/">dbunit-plugin</a>
64   <a href="./pitfalls.html#fails">may fail</a>, when the execution is skipped.
65   </p>
66   
67 <p>
68   If you need the hibernate-maven-plugin to <i>never skip execution automatically</i>,
69   you can force it to do so, if you set the parameter <tt>force</tt> to
70   <tt>true</tt>:
71   </p>
72   
73 <div>
74 <pre class="prettyprint linenums lang-html">
75 &lt;plugin&gt;
76   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
77   &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
78   &lt;version&gt;2.0.0&lt;/version&gt;
79   &lt;configuration&gt;
80     &lt;force&gt;true&lt;/force&gt;
81   &lt;/configuration&gt;
82 &lt;/plugin&gt;</pre></div>
83   
84 <p>
85   Or you may specify <tt>-Dhibernate.schema.force=true</tt> at the command line,
86   if you want to force hibernate-maven-plugin only once.
87   </p>
88  
89
90         </article>
91         <div class="marginal">
92           <nav id="nav">
93             <hr class="n" />
94             <a id="navigation"></a>
95             <a class="hide" href="#top" title="Show Content">Jump back to the top of the page</a>
96             <h2 class="nav menu">Section-Menu</h2>
97             <ul id="menu">
98               <li class="m blog"><a href="/blog/" class="m">Blog</a></li>
99               <li class="m projects"><a href="/projects.html" class="m selected">Projects</a></li>
100               <li class="m about"><a href="/about.html" class="m">About</a></li>
101             </ul>
102             <h2 class="nav submenu">
103               <span class="s">Submenu for section</span>
104               <a class="s selected" href="/projects.html">Projects</a>
105             </h2>
106             <ul id="submenu" class="s">
107                                                               <li class="s sub">
108                                           <a class="s selected" href="./index.html">Hibernate Maven Plugin</a>
109                                         <ul class="s active">
110                                                                                                                                                                                                                                                           <li class="s">
111                     <a href="configuration.html" class="s" title="Configuration Examples">Configuration Examples</a>
112                 </li>
113                                                                                                                   <li class="s">
114                     <a href="create-mojo.html" class="s" title="Goal: CREATE">Goal: CREATE</a>
115                 </li>
116                                                                                                                   <li class="s">
117                     <a href="drop-mojo.html" class="s" title="Goal: DROP">Goal: DROP</a>
118                 </li>
119                                                                                                                   <li class="s">
120                     <a href="debugging.html" class="s" title="Enable Debug-Output">Enable Debug-Output</a>
121                 </li>
122                                                                                                                   <li class="s">
123                     <a href="skip.html" class="s" title="Skipping Execution">Skipping Execution</a>
124                 </li>
125                                                                                                                         <li class="s">
126               <strong class="s">Force Exceution</strong>
127                 </li>
128                                                                                                                   <li class="s">
129                     <a href="pitfalls.html" class="s" title="Known Pitfalls (FAQ)">Known Pitfalls (FAQ)</a>
130                 </li>
131                                                                                                                                                                                                                                                                                                                                                             <li class="s sub">
132                     <a href="project-info.html" class="s" title="Project Information">Project Information</a>
133                 </li>
134                                                                                                                                                                                                             <li class="s sub">
135                     <a href="project-reports.html" class="s" title="Project Reports">Project Reports</a>
136                 </li>
137                                                                                               </ul>
138                   </li>
139                                           </ul>
140             <hr class="n" />
141           </nav>
142           <aside class="m">
143             <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
144               <img class="poweredBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
145             </a>
146           </aside>
147         </div>
148       </main>
149       <footer id="footer">
150         <hr class="f" />
151         <ul id="footerlinks">
152           <li class="f" id="copyright">&#xa9; <strong>mo</strong>             2016
153       </li>
154           <li class="f"><a class="f" href="/impressum.html">Impressum</a></li>
155           <li class="f about"><a class="f" href="/about.html">About</a></li>
156         </ul>
157       </footer>
158     </div>
159         <script type="text/javascript"><!--//--><![CDATA[//><!--
160       var _gaq = _gaq || [];
161       _gaq.push(['_setAccount', 'UA-571104-3']);
162       _gaq.push(['_trackPageview']);
163       (function() {
164         var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
165         ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
166         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
167       })();
168     //--><!]]>
169     </script>
170       </body>
171 </html>