2 title: Goal — hibernate:create
4 url: /projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/create-mojo.html
7 canonical: hibernate-maven-plugin/create-mojo.html
13 <h2><a name="hibernate:create"></a>hibernate:create</h2>
15 <p><b>Full name</b>:</p>
17 <p>de.juplo:hibernate-maven-plugin:2.1.2-SNAPSHOT:create</p>
19 <p><b>Description</b>:</p>
21 <div>Generate/Execute SQL to create a database-schema that represents
22 the configured mappings.</div>
24 <p><b>Attributes</b>:</p>
28 <li>Requires a Maven project to be executed.</li>
30 <li>Requires dependency resolution of artifacts in scope: <code>runtime</code>.</li>
32 <li>The goal is thread-safe and supports parallel builds.</li>
34 <li>Binds by default to the <a class="externalLink" href="http://maven.apache.org/ref/current/maven-core/lifecycles.html">lifecycle phase</a>: <code>process-classes</code>.</li>
37 <h3><a name="Optional_Parameters"></a>Optional Parameters</h3>
39 <table class="bodyTable" border="0">
54 <td><b><a href="#createNamespaces">createNamespaces</a></b></td>
56 <td><code>Boolean</code></td>
58 <td><code>2.0</code></td>
60 <td>Specifies whether to automatically create also the database
61 schema/catalog.<br /><b>Default value is</b>: <code>false</code>.<br /><b>User property is</b>: <code>hibernate.hbm2dll.create_namespaces</code>.</td>
66 <td><b><a href="#delimiter">delimiter</a></b></td>
68 <td><code>String</code></td>
70 <td><code>1.0</code></td>
72 <td>Delimiter in output-file.
74 <p><b>Important:</b> This configuration value can only be
75 configured through the <code>pom.xml</code>, or by the definition
76 of a system-property, because it is not known by Hibernate nor JPA
77 and, hence, not picked up from their configuration!</p><br /><b>Default value is</b>: <code>;</code>.<br /><b>User property is</b>: <code>hibernate.hbm2ddl.delimiter</code>.</td>
82 <td><b><a href="#dialect">dialect</a></b></td>
84 <td><code>String</code></td>
86 <td><code>1.0</code></td>
88 <td>Hibernate dialect.<br /><b>User property is</b>: <code>hibernate.dialect</code>.</td>
93 <td><b><a href="#driver">driver</a></b></td>
95 <td><code>String</code></td>
97 <td><code>1.0</code></td>
99 <td>SQL-Driver name.<br /><b>User property is</b>: <code>hibernate.connection.driver_class</code>.</td>
104 <td><b><a href="#execute">execute</a></b></td>
106 <td><code>Boolean</code></td>
108 <td><code>2.0</code></td>
110 <td>Excecute the generated SQL. If set to <code>false</code>, only the
111 SQL-script is created and the database is not touched.
113 <p><b>Important:</b> This configuration value can only be
114 configured through the <code>pom.xml</code>, or by the definition
115 of a system-property, because it is not known by Hibernate nor JPA
116 and, hence, not picked up from their configuration!</p><br /><b>Default value is</b>: <code>true</code>.<br /><b>User property is</b>: <code>hibernate.schema.execute</code>.</td>
121 <td><b><a href="#force">force</a></b></td>
123 <td><code>boolean</code></td>
125 <td><code>1.0</code></td>
127 <td>Force generation/execution
129 <p>Force the generation and (if configured) the execution of the
130 SQL, even if no modified or newly added annotated classes where
131 found and the configuration was not changed.</p>
133 <p><code>skip</code> takes precedence over <code>force</code>.</p>
135 <p><b>Important:</b> This configuration value can only be
136 configured through the <code>pom.xml</code>, or by the definition
137 of a system-property, because it is not known by Hibernate nor JPA
138 and, hence, not picked up from their configuration!</p><br /><b>Default value is</b>: <code>false</code>.<br /><b>User property is</b>: <code>hibernate.schema.force</code>.</td>
143 <td><b><a href="#format">format</a></b></td>
145 <td><code>Boolean</code></td>
147 <td><code>1.0</code></td>
149 <td>Format output-file.<br /><b>User property is</b>: <code>hibernate.format_sql</code>.</td>
154 <td><b><a href="#hibernateConfig">hibernateConfig</a></b></td>
156 <td><code>String</code></td>
158 <td><code>1.1.0</code></td>
160 <td>Path to Hibernate configuration file (.cfg.xml). If this parameter
161 is specified, the plugin will try to load configuration values from
162 a file with the given path or a ressource on the classpath with the
163 given name. If both fails, the execution of the plugin will fail.
165 <p>If this parameter is not set the plugin will load configuration
166 values from a ressource named <code>hibernate.cfg.xml</code> on the
167 classpath, if it is present, but will not fail if there is no such
170 <p>During ressource-lookup, the test-classpath takes
173 <p>Settings in this file will overwrite settings in the properties
179 <td><b><a href="#hibernateProperties">hibernateProperties</a></b></td>
181 <td><code>String</code></td>
183 <td><code>1.0</code></td>
185 <td>Path to a file or name of a ressource with hibernate properties. If
186 this parameter is specified, the plugin will try to load
187 configuration values from a file with the given path or a ressource
188 on the classpath with the given name. If both fails, the execution
189 of the plugin will fail.
191 <p>If this parameter is not set the plugin will load configuration
192 values from a ressource named <code>hibernate.properties</code> on
193 the classpath, if it is present, but will not fail if there is no
196 <p>During ressource-lookup, the test-classpath takes
197 precedence.</p><br /></td>
202 <td><b><a href="#implicitNamingStrategy">implicitNamingStrategy</a></b></td>
204 <td><code>String</code></td>
206 <td><code>2.0</code></td>
208 <td>Implicit naming strategy<br /><b>User property is</b>: <code>hibernate.implicit_naming_strategy</code>.</td>
213 <td><b><a href="#mappings">mappings</a></b></td>
215 <td><code>String</code></td>
217 <td><code>1.0.2</code></td>
219 <td>List of Hibernate-Mapping-Files (XML). Multiple files can be
220 separated with white-spaces and/or commas.<br /><b>User property is</b>: <code>hibernate.mapping</code>.</td>
225 <td><b><a href="#outputDirectory">outputDirectory</a></b></td>
227 <td><code>String</code></td>
229 <td><code>1.0</code></td>
231 <td>Classes-Directory to scan.
233 <p>This parameter defaults to the maven build-output-directory for
234 classes. Additionally, all dependencies are scanned for annotated
237 <p><b>Important:</b> This configuration value can only be
238 configured through the <code>pom.xml</code>, or by the definition
239 of a system-property, because it is not known by Hibernate nor JPA
240 and, hence, not picked up from their configuration!</p><br /><b>User property is</b>: <code>project.build.outputDirectory</code>.</td>
245 <td><b><a href="#outputFile">outputFile</a></b></td>
247 <td><code>String</code></td>
249 <td><code>1.0</code></td>
253 <p>If the specified filename is not absolut, the file will be
254 created relative to the project build directory
255 (<code>project.build.directory</code>).</p><br /><b>Default value is</b>: <code>create.sql</code>.<br /><b>User property is</b>: <code>hibernate.schema.create</code>.</td>
260 <td><b><a href="#password">password</a></b></td>
262 <td><code>String</code></td>
264 <td><code>1.0</code></td>
266 <td>Database password<br /><b>User property is</b>: <code>hibernate.connection.password</code>.</td>
271 <td><b><a href="#persistenceUnit">persistenceUnit</a></b></td>
273 <td><code>String</code></td>
275 <td><code>1.1.0</code></td>
277 <td>Name of the persistence-unit. If this parameter is specified, the
278 plugin will try to load configuration values from a
279 persistence-unit with the specified name. If no such
280 persistence-unit can be found, the plugin will throw an exception.
282 <p>If this parameter is not set and there is only one
283 persistence-unit available, that unit will be used automatically.
284 But if this parameter is not set and there are multiple
285 persistence-units available on, the class-path, the execution of
286 the plugin will fail.</p>
288 <p>Settings in this file will overwrite settings in the properties
289 or the configuration file.</p><br /></td>
294 <td><b><a href="#physicalNamingStrategy">physicalNamingStrategy</a></b></td>
296 <td><code>String</code></td>
298 <td><code>2.0</code></td>
300 <td>Physical naming strategy<br /><b>User property is</b>: <code>hibernate.physical_naming_strategy</code>.</td>
305 <td><b><a href="#scanClasses">scanClasses</a></b></td>
307 <td><code>Boolean</code></td>
309 <td><code>2.0</code></td>
311 <td>Wether the project should be scanned for annotated-classes, or not
313 <p>This parameter is intended to allow overwriting of the parameter
314 <code>exclude-unlisted-classes</code> of a
315 <code>persistence-unit</code>. If not specified, it defaults to
316 <code>true</code></p><br /><b>User property is</b>: <code>hibernate.schema.scan.classes</code>.</td>
321 <td><b><a href="#scanDependencies">scanDependencies</a></b></td>
323 <td><code>String</code></td>
325 <td><code>1.0.3</code></td>
327 <td>Dependency-Scopes, that should be scanned for annotated classes.
329 <p>By default, only dependencies in the scope <code>compile</code>
330 are scanned for annotated classes. Multiple scopes can be seperated
331 by white space or commas.</p>
333 <p>If you do not want any dependencies to be scanned for annotated
334 classes, set this parameter to <code>none</code>.</p>
336 <p>The plugin does not scan for annotated classes in transitive
337 dependencies. If some of your annotated classes are hidden in a
338 transitive dependency, you can simply add that dependency
339 explicitly.</p><br /><b>Default value is</b>: <code>compile</code>.<br /><b>User property is</b>: <code>hibernate.schema.scan.dependencies</code>.</td>
344 <td><b><a href="#scanTestClasses">scanTestClasses</a></b></td>
346 <td><code>Boolean</code></td>
348 <td><code>1.0.1</code></td>
350 <td>Whether to scan the test-branch of the project for annotated
353 <p>If this parameter is set to <code>true</code> the test-classes
354 of the artifact will be scanned for hibernate-annotated classes
357 <p><b>Important:</b> This configuration value can only be
358 configured through the <code>pom.xml</code>, or by the definition
359 of a system-property, because it is not known by Hibernate nor JPA
360 and, hence, not picked up from their configuration!</p><br /><b>Default value is</b>: <code>false</code>.<br /><b>User property is</b>: <code>hibernate.schema.scan.test_classes</code>.</td>
365 <td><b><a href="#show">show</a></b></td>
367 <td><code>Boolean</code></td>
369 <td><code>1.0</code></td>
371 <td>Show the generated SQL in the command-line output.<br /><b>User property is</b>: <code>hibernate.show_sql</code>.</td>
376 <td><b><a href="#skip">skip</a></b></td>
378 <td><code>boolean</code></td>
380 <td><code>1.0</code></td>
384 <p>If set to <code>true</code>, the execution is skipped.</p>
386 <p>A skipped execution is signaled via the maven-property
387 <code>${hibernate.schema.skipped}</code>.</p>
389 <p>The execution is skipped automatically, if no modified or newly
390 added annotated classes are found and the dialect was not
393 <p><b>Important:</b> This configuration value can only be
394 configured through the <code>pom.xml</code>, or by the definition
395 of a system-property, because it is not known by Hibernate nor JPA
396 and, hence, not picked up from their configuration!</p><br /><b>Default value is</b>: <code>${maven.test.skip}</code>.<br /><b>User property is</b>: <code>hibernate.schema.skip</code>.</td>
401 <td><b><a href="#testOutputDirectory">testOutputDirectory</a></b></td>
403 <td><code>String</code></td>
405 <td><code>1.0.2</code></td>
407 <td>Test-Classes-Directory to scan.
409 <p>This parameter defaults to the maven build-output-directory for
412 <p>This parameter is only used, when <code>scanTestClasses</code>
413 is set to <code>true</code>!</p>
415 <p><b>Important:</b> This configuration value can only be
416 configured through the <code>pom.xml</code>, or by the definition
417 of a system-property, because it is not known by Hibernate nor JPA
418 and, hence, not picked up from their configuration!</p><br /><b>User property is</b>: <code>project.build.testOutputDirectory</code>.</td>
423 <td><b><a href="#url">url</a></b></td>
425 <td><code>String</code></td>
427 <td><code>1.0</code></td>
429 <td>Database URL.<br /><b>User property is</b>: <code>hibernate.connection.url</code>.</td>
434 <td><b><a href="#username">username</a></b></td>
436 <td><code>String</code></td>
438 <td><code>1.0</code></td>
440 <td>Database username<br /><b>User property is</b>: <code>hibernate.connection.username</code>.</td>
445 <h3><a name="Parameter_Details"></a>Parameter Details</h3>
447 <p><b><a name="createNamespaces">createNamespaces</a>:</b></p>
449 <div>Specifies whether to automatically create also the database
450 schema/catalog.</div>
454 <li><b>Type</b>: <code>java.lang.Boolean</code></li>
456 <li><b>Since</b>: <code>2.0</code></li>
458 <li><b>Required</b>: <code>No</code></li>
460 <li><b>User Property</b>: <code>hibernate.hbm2dll.create_namespaces</code></li>
462 <li><b>Default</b>: <code>false</code></li>
464 <p><b><a name="delimiter">delimiter</a>:</b></p>
466 <div>Delimiter in output-file.
468 <p><b>Important:</b> This configuration value can only be
469 configured through the <code>pom.xml</code>, or by the definition
470 of a system-property, because it is not known by Hibernate nor JPA
471 and, hence, not picked up from their configuration!</p></div>
475 <li><b>Type</b>: <code>java.lang.String</code></li>
477 <li><b>Since</b>: <code>1.0</code></li>
479 <li><b>Required</b>: <code>No</code></li>
481 <li><b>User Property</b>: <code>hibernate.hbm2ddl.delimiter</code></li>
483 <li><b>Default</b>: <code>;</code></li>
485 <p><b><a name="dialect">dialect</a>:</b></p>
487 <div>Hibernate dialect.</div>
491 <li><b>Type</b>: <code>java.lang.String</code></li>
493 <li><b>Since</b>: <code>1.0</code></li>
495 <li><b>Required</b>: <code>No</code></li>
497 <li><b>User Property</b>: <code>hibernate.dialect</code></li>
499 <p><b><a name="driver">driver</a>:</b></p>
501 <div>SQL-Driver name.</div>
505 <li><b>Type</b>: <code>java.lang.String</code></li>
507 <li><b>Since</b>: <code>1.0</code></li>
509 <li><b>Required</b>: <code>No</code></li>
511 <li><b>User Property</b>: <code>hibernate.connection.driver_class</code></li>
513 <p><b><a name="execute">execute</a>:</b></p>
515 <div>Excecute the generated SQL. If set to <code>false</code>, only the
516 SQL-script is created and the database is not touched.
518 <p><b>Important:</b> This configuration value can only be
519 configured through the <code>pom.xml</code>, or by the definition
520 of a system-property, because it is not known by Hibernate nor JPA
521 and, hence, not picked up from their configuration!</p></div>
525 <li><b>Type</b>: <code>java.lang.Boolean</code></li>
527 <li><b>Since</b>: <code>2.0</code></li>
529 <li><b>Required</b>: <code>No</code></li>
531 <li><b>User Property</b>: <code>hibernate.schema.execute</code></li>
533 <li><b>Default</b>: <code>true</code></li>
535 <p><b><a name="force">force</a>:</b></p>
537 <div>Force generation/execution
539 <p>Force the generation and (if configured) the execution of the
540 SQL, even if no modified or newly added annotated classes where
541 found and the configuration was not changed.</p>
543 <p><code>skip</code> takes precedence over <code>force</code>.</p>
545 <p><b>Important:</b> This configuration value can only be
546 configured through the <code>pom.xml</code>, or by the definition
547 of a system-property, because it is not known by Hibernate nor JPA
548 and, hence, not picked up from their configuration!</p></div>
552 <li><b>Type</b>: <code>boolean</code></li>
554 <li><b>Since</b>: <code>1.0</code></li>
556 <li><b>Required</b>: <code>No</code></li>
558 <li><b>User Property</b>: <code>hibernate.schema.force</code></li>
560 <li><b>Default</b>: <code>false</code></li>
562 <p><b><a name="format">format</a>:</b></p>
564 <div>Format output-file.</div>
568 <li><b>Type</b>: <code>java.lang.Boolean</code></li>
570 <li><b>Since</b>: <code>1.0</code></li>
572 <li><b>Required</b>: <code>No</code></li>
574 <li><b>User Property</b>: <code>hibernate.format_sql</code></li>
576 <p><b><a name="hibernateConfig">hibernateConfig</a>:</b></p>
578 <div>Path to Hibernate configuration file (.cfg.xml). If this parameter
579 is specified, the plugin will try to load configuration values from
580 a file with the given path or a ressource on the classpath with the
581 given name. If both fails, the execution of the plugin will fail.
583 <p>If this parameter is not set the plugin will load configuration
584 values from a ressource named <code>hibernate.cfg.xml</code> on the
585 classpath, if it is present, but will not fail if there is no such
588 <p>During ressource-lookup, the test-classpath takes
591 <p>Settings in this file will overwrite settings in the properties
596 <li><b>Type</b>: <code>java.lang.String</code></li>
598 <li><b>Since</b>: <code>1.1.0</code></li>
600 <li><b>Required</b>: <code>No</code></li>
602 <p><b><a name="hibernateProperties">hibernateProperties</a>:</b></p>
604 <div>Path to a file or name of a ressource with hibernate properties. If
605 this parameter is specified, the plugin will try to load
606 configuration values from a file with the given path or a ressource
607 on the classpath with the given name. If both fails, the execution
608 of the plugin will fail.
610 <p>If this parameter is not set the plugin will load configuration
611 values from a ressource named <code>hibernate.properties</code> on
612 the classpath, if it is present, but will not fail if there is no
615 <p>During ressource-lookup, the test-classpath takes
616 precedence.</p></div>
620 <li><b>Type</b>: <code>java.lang.String</code></li>
622 <li><b>Since</b>: <code>1.0</code></li>
624 <li><b>Required</b>: <code>No</code></li>
626 <p><b><a name="implicitNamingStrategy">implicitNamingStrategy</a>:</b></p>
628 <div>Implicit naming strategy</div>
632 <li><b>Type</b>: <code>java.lang.String</code></li>
634 <li><b>Since</b>: <code>2.0</code></li>
636 <li><b>Required</b>: <code>No</code></li>
638 <li><b>User Property</b>: <code>hibernate.implicit_naming_strategy</code></li>
640 <p><b><a name="mappings">mappings</a>:</b></p>
642 <div>List of Hibernate-Mapping-Files (XML). Multiple files can be
643 separated with white-spaces and/or commas.</div>
647 <li><b>Type</b>: <code>java.lang.String</code></li>
649 <li><b>Since</b>: <code>1.0.2</code></li>
651 <li><b>Required</b>: <code>No</code></li>
653 <li><b>User Property</b>: <code>hibernate.mapping</code></li>
655 <p><b><a name="outputDirectory">outputDirectory</a>:</b></p>
657 <div>Classes-Directory to scan.
659 <p>This parameter defaults to the maven build-output-directory for
660 classes. Additionally, all dependencies are scanned for annotated
663 <p><b>Important:</b> This configuration value can only be
664 configured through the <code>pom.xml</code>, or by the definition
665 of a system-property, because it is not known by Hibernate nor JPA
666 and, hence, not picked up from their configuration!</p></div>
670 <li><b>Type</b>: <code>java.lang.String</code></li>
672 <li><b>Since</b>: <code>1.0</code></li>
674 <li><b>Required</b>: <code>No</code></li>
676 <li><b>User Property</b>: <code>project.build.outputDirectory</code></li>
678 <p><b><a name="outputFile">outputFile</a>:</b></p>
682 <p>If the specified filename is not absolut, the file will be
683 created relative to the project build directory
684 (<code>project.build.directory</code>).</p></div>
688 <li><b>Type</b>: <code>java.lang.String</code></li>
690 <li><b>Since</b>: <code>1.0</code></li>
692 <li><b>Required</b>: <code>No</code></li>
694 <li><b>User Property</b>: <code>hibernate.schema.create</code></li>
696 <li><b>Default</b>: <code>create.sql</code></li>
698 <p><b><a name="password">password</a>:</b></p>
700 <div>Database password</div>
704 <li><b>Type</b>: <code>java.lang.String</code></li>
706 <li><b>Since</b>: <code>1.0</code></li>
708 <li><b>Required</b>: <code>No</code></li>
710 <li><b>User Property</b>: <code>hibernate.connection.password</code></li>
712 <p><b><a name="persistenceUnit">persistenceUnit</a>:</b></p>
714 <div>Name of the persistence-unit. If this parameter is specified, the
715 plugin will try to load configuration values from a
716 persistence-unit with the specified name. If no such
717 persistence-unit can be found, the plugin will throw an exception.
719 <p>If this parameter is not set and there is only one
720 persistence-unit available, that unit will be used automatically.
721 But if this parameter is not set and there are multiple
722 persistence-units available on, the class-path, the execution of
723 the plugin will fail.</p>
725 <p>Settings in this file will overwrite settings in the properties
726 or the configuration file.</p></div>
730 <li><b>Type</b>: <code>java.lang.String</code></li>
732 <li><b>Since</b>: <code>1.1.0</code></li>
734 <li><b>Required</b>: <code>No</code></li>
736 <p><b><a name="physicalNamingStrategy">physicalNamingStrategy</a>:</b></p>
738 <div>Physical naming strategy</div>
742 <li><b>Type</b>: <code>java.lang.String</code></li>
744 <li><b>Since</b>: <code>2.0</code></li>
746 <li><b>Required</b>: <code>No</code></li>
748 <li><b>User Property</b>: <code>hibernate.physical_naming_strategy</code></li>
750 <p><b><a name="scanClasses">scanClasses</a>:</b></p>
752 <div>Wether the project should be scanned for annotated-classes, or not
754 <p>This parameter is intended to allow overwriting of the parameter
755 <code>exclude-unlisted-classes</code> of a
756 <code>persistence-unit</code>. If not specified, it defaults to
757 <code>true</code></p></div>
761 <li><b>Type</b>: <code>java.lang.Boolean</code></li>
763 <li><b>Since</b>: <code>2.0</code></li>
765 <li><b>Required</b>: <code>No</code></li>
767 <li><b>User Property</b>: <code>hibernate.schema.scan.classes</code></li>
769 <p><b><a name="scanDependencies">scanDependencies</a>:</b></p>
771 <div>Dependency-Scopes, that should be scanned for annotated classes.
773 <p>By default, only dependencies in the scope <code>compile</code>
774 are scanned for annotated classes. Multiple scopes can be seperated
775 by white space or commas.</p>
777 <p>If you do not want any dependencies to be scanned for annotated
778 classes, set this parameter to <code>none</code>.</p>
780 <p>The plugin does not scan for annotated classes in transitive
781 dependencies. If some of your annotated classes are hidden in a
782 transitive dependency, you can simply add that dependency
783 explicitly.</p></div>
787 <li><b>Type</b>: <code>java.lang.String</code></li>
789 <li><b>Since</b>: <code>1.0.3</code></li>
791 <li><b>Required</b>: <code>No</code></li>
793 <li><b>User Property</b>: <code>hibernate.schema.scan.dependencies</code></li>
795 <li><b>Default</b>: <code>compile</code></li>
797 <p><b><a name="scanTestClasses">scanTestClasses</a>:</b></p>
799 <div>Whether to scan the test-branch of the project for annotated
802 <p>If this parameter is set to <code>true</code> the test-classes
803 of the artifact will be scanned for hibernate-annotated classes
806 <p><b>Important:</b> This configuration value can only be
807 configured through the <code>pom.xml</code>, or by the definition
808 of a system-property, because it is not known by Hibernate nor JPA
809 and, hence, not picked up from their configuration!</p></div>
813 <li><b>Type</b>: <code>java.lang.Boolean</code></li>
815 <li><b>Since</b>: <code>1.0.1</code></li>
817 <li><b>Required</b>: <code>No</code></li>
819 <li><b>User Property</b>: <code>hibernate.schema.scan.test_classes</code></li>
821 <li><b>Default</b>: <code>false</code></li>
823 <p><b><a name="show">show</a>:</b></p>
825 <div>Show the generated SQL in the command-line output.</div>
829 <li><b>Type</b>: <code>java.lang.Boolean</code></li>
831 <li><b>Since</b>: <code>1.0</code></li>
833 <li><b>Required</b>: <code>No</code></li>
835 <li><b>User Property</b>: <code>hibernate.show_sql</code></li>
837 <p><b><a name="skip">skip</a>:</b></p>
841 <p>If set to <code>true</code>, the execution is skipped.</p>
843 <p>A skipped execution is signaled via the maven-property
844 <code>${hibernate.schema.skipped}</code>.</p>
846 <p>The execution is skipped automatically, if no modified or newly
847 added annotated classes are found and the dialect was not
850 <p><b>Important:</b> This configuration value can only be
851 configured through the <code>pom.xml</code>, or by the definition
852 of a system-property, because it is not known by Hibernate nor JPA
853 and, hence, not picked up from their configuration!</p></div>
857 <li><b>Type</b>: <code>boolean</code></li>
859 <li><b>Since</b>: <code>1.0</code></li>
861 <li><b>Required</b>: <code>No</code></li>
863 <li><b>User Property</b>: <code>hibernate.schema.skip</code></li>
865 <li><b>Default</b>: <code>${maven.test.skip}</code></li>
867 <p><b><a name="testOutputDirectory">testOutputDirectory</a>:</b></p>
869 <div>Test-Classes-Directory to scan.
871 <p>This parameter defaults to the maven build-output-directory for
874 <p>This parameter is only used, when <code>scanTestClasses</code>
875 is set to <code>true</code>!</p>
877 <p><b>Important:</b> This configuration value can only be
878 configured through the <code>pom.xml</code>, or by the definition
879 of a system-property, because it is not known by Hibernate nor JPA
880 and, hence, not picked up from their configuration!</p></div>
884 <li><b>Type</b>: <code>java.lang.String</code></li>
886 <li><b>Since</b>: <code>1.0.2</code></li>
888 <li><b>Required</b>: <code>No</code></li>
890 <li><b>User Property</b>: <code>project.build.testOutputDirectory</code></li>
892 <p><b><a name="url">url</a>:</b></p>
894 <div>Database URL.</div>
898 <li><b>Type</b>: <code>java.lang.String</code></li>
900 <li><b>Since</b>: <code>1.0</code></li>
902 <li><b>Required</b>: <code>No</code></li>
904 <li><b>User Property</b>: <code>hibernate.connection.url</code></li>
906 <p><b><a name="username">username</a>:</b></p>
908 <div>Database username</div>
912 <li><b>Type</b>: <code>java.lang.String</code></li>
914 <li><b>Since</b>: <code>1.0</code></li>
916 <li><b>Required</b>: <code>No</code></li>
918 <li><b>User Property</b>: <code>hibernate.connection.username</code></li>
925 <!-- PREPARING ROOT-ENTRY - name: Hibernate Maven Plugin ref: index.html -->
926 <!-- READING MENU - name: Project Documentation ref: reports -->
927 <!-- VISITING PAGE - href: /project-info.html / name: Project Information -->
928 <!-- VISITING PAGE - href: ci-management.html / name: CI Management -->
929 <!-- VISITING PAGE - href: dependencies.html / name: Dependencies -->
930 <!-- VISITING PAGE - href: dependency-info.html / name: Maven Coordinates -->
931 <!-- VISITING PAGE - href: distribution-management.html / name: Distribution Management -->
932 <!-- VISITING PAGE - href: index.html / name: About -->
933 <!-- RENAMING already seen PAGE: href=index.html, FROM name=Hibernate Maven Plugin TO name=About -->
934 <!-- VISITING PAGE - href: licenses.html / name: Licenses -->
935 <!-- VISITING PAGE - href: plugin-management.html / name: Plugin Management -->
936 <!-- VISITING PAGE - href: plugins.html / name: Plugins -->
937 <!-- VISITING PAGE - href: scm.html / name: Source Code Management -->
938 <!-- VISITING PAGE - href: summary.html / name: Summary -->
939 <!-- VISITING PAGE - href: team.html / name: Team -->
940 <!-- VISITING PAGE - href: /project-reports.html / name: Project Reports -->
941 <!-- VISITING PAGE - href: testapidocs/index.html / name: Test JavaDocs -->
942 <!-- VISITING PAGE - href: apidocs/index.html / name: JavaDocs -->
943 <!-- VISITING PAGE - href: xref/index.html / name: Source Xref -->
944 <!-- VISITING PAGE - href: xref-test/index.html / name: Test Source Xref -->
945 <!-- VISITING PAGE - href: cpd.html / name: CPD -->
946 <!-- VISITING PAGE - href: pmd.html / name: PMD -->
947 <!-- VISITING PAGE - href: plugin-info.html / name: Plugin Documentation -->
948 <!-- READING MENU - name: $menu.name ref: $menu.ref -->
949 <!-- VISITING PAGE - href: index.html / name: About -->
950 <!-- RENAMING already seen PAGE: href=index.html, FROM name=About TO name=About -->
951 <!-- VISITING PAGE - href: configuration.html / name: Configuration Examples -->
952 <!-- VISITING PAGE - href: create-mojo.html / name: Goal — hibernate:create -->
953 <!-- VISITING PAGE - href: update-mojo.html / name: Goal — hibernate:update -->
954 <!-- VISITING PAGE - href: drop-mojo.html / name: Goal — hibernate:drop -->
955 <!-- VISITING PAGE - href: help-mojo.html / name: Goal — hibernate:help -->
956 <!-- VISITING PAGE - href: debugging.html / name: Enable Debugging-Output -->
957 <!-- VISITING PAGE - href: skip.html / name: Skipping Execution -->
958 <!-- VISITING PAGE - href: force.html / name: Force Exceution -->
959 <!-- VISITING PAGE - href: pitfalls.html / name: Known Pitfalls (FAQ) -->
960 <!-- VISITING PAGE - href: project-info.html / name: Project Information -->
961 <!-- RENAMING already seen PAGE: href=project-info.html, FROM name=Project Information TO name=Project Information -->
962 <!-- VISITING PAGE - href: project-reports.html / name: Project Reports -->
963 <!-- RENAMING already seen PAGE: href=project-reports.html, FROM name=Project Reports TO name=Project Reports -->