--- /dev/null
+<!DOCTYPE html>
+<!-- Generated by Apache Maven Doxia Site Renderer 1.6 at 2016-03-09 -->
+ <!-- Current: create-mojo.html -->
+<!-- Active: index.html -->
+<!-- Path: [index.html, create-mojo.html] -->
+<!-- Skiplist: [index.html, configuration.html, create-mojo.html, drop-mojo.html, debugging.html, skip.html, force.html, pitfalls.html] -->
+<html>
+ <head>
+ <title>juplo - Hibernate Maven Plugin - Goal: CREATE</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <link rel="canonical" href="http://juplo.de/hibernate-maven-plugin/create-mojo.html"/>
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <link rel="stylesheet" type="text/css" href="/css/base.css" />
+ <style type="text/css">
+ @import '/css/screen.css' screen;
+ </style>
+ <script src="/js/prettify.js"></script>
+ <!--[if lt IE 9]>
+ <script src="/js/html5shiv.js"></script>
+ <![endif]-->
+ <!--[if IE 8]>
+ <link rel="stylesheet" type="text/css" href="/css/ie8.css" />
+ <![endif]-->
+
+ </head>
+ <body class="menu" onload="prettyPrint()">
+ <div id="page" class="cf">
+ <header id="header">
+ <h1 id="logo"><a href="/" title="Home" class="l">juplo</a></h1>
+ <span id="slogan"><strong>Java</strong> bits from nerds for nerds</span>
+ <hr class="h" />
+ </header>
+ <div id="breadcrumb">
+ <strong class="b title">You are here:</strong>
+ <ol class="b">
+ <li class="b"><a class="b" href="/">Home</a></li>
+ <li class="b"><a class="b" href="/projects.html">Projects</a></li>
+ <li class="b"><a class="b" href="./index.html">Hibernate Maven Plugin</a></li>
+ <li class="b"><strong class="b">Goal: CREATE</strong></li>
+ </ol>
+ <a class="hide" href="#navigation">Jump to navigation</a>
+ <hr class="b" />
+ </div>
+ <main class="content cf">
+ <article id="content" class="main">
+ <header><h1>Goal: CREATE</h1></header>
+
+
+ <div class="section">
+<h2><a name="hibernate:create"></a>hibernate:create</h2>
+
+<p><b>Full name</b>:</p>
+
+<p>de.juplo:hibernate-maven-plugin:2.0.0:create</p>
+
+<p><b>Description</b>:</p>
+
+<div>Goal which extracts the hibernate-mapping-configuration and exports
+an according SQL-database-schema.</div>
+
+<p><b>Attributes</b>:</p>
+
+<ul>
+
+<li>Requires a Maven project to be executed.</li>
+
+<li>Requires dependency resolution of artifacts in scope: <tt>runtime</tt>.</li>
+
+<li>The goal is thread-safe and supports parallel builds.</li>
+
+<li>Binds by default to the <a class="externalLink" href="http://maven.apache.org/ref/current/maven-core/lifecycles.html">lifecycle phase</a>: <tt>process-classes</tt>.</li>
+ </ul>
+
+<div class="section">
+<h3><a name="Optional_Parameters"></a>Optional Parameters</h3>
+
+<table class="bodyTable" border="0">
+
+<tr class="a">
+
+<th>Name</th>
+
+<th>Type</th>
+
+<th>Since</th>
+
+<th>Description</th>
+ </tr>
+
+<tr class="b">
+
+<td><b><a href="#createNamespaces">createNamespaces</a></b></td>
+
+<td><tt>Boolean</tt></td>
+
+<td><tt>2.0</tt></td>
+
+<td>Specifies whether to automatically create also the database
+schema/catalog.<br /><b>Default value is</b>: <tt>false</tt>.<br /><b>User property is</b>: <tt>hibernate.hbm2dll.create_namespaces</tt>.</td>
+ </tr>
+
+<tr class="a">
+
+<td><b><a href="#delimiter">delimiter</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>1.0</tt></td>
+
+<td>Delimiter in output-file.
+
+<p><b>Important:</b> This configuration value can only be
+configured through the <tt>pom.xml</tt>, or by the definition
+of a system-property, because it is not known by Hibernate nor JPA
+and, hence, not picked up from their configuration!</p><br /><b>Default value is</b>: <tt>;</tt>.<br /><b>User property is</b>: <tt>hibernate.schema.delimiter</tt>.</td>
+ </tr>
+
+<tr class="b">
+
+<td><b><a href="#dialect">dialect</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>1.0</tt></td>
+
+<td>Hibernate dialect.<br /><b>User property is</b>: <tt>hibernate.dialect</tt>.</td>
+ </tr>
+
+<tr class="a">
+
+<td><b><a href="#driver">driver</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>1.0</tt></td>
+
+<td>SQL-Driver name.<br /><b>User property is</b>: <tt>hibernate.connection.driver_class</tt>.</td>
+ </tr>
+
+<tr class="b">
+
+<td><b><a href="#export">export</a></b></td>
+
+<td><tt>Boolean</tt></td>
+
+<td><tt>2.0</tt></td>
+
+<td>Export the database-schma to the database. If set to
+<tt>false</tt>, only the SQL-script is created and the database
+is not touched.
+
+<p><b>Important:</b> This configuration value can only be
+configured through the <tt>pom.xml</tt>, or by the definition
+of a system-property, because it is not known by Hibernate nor JPA
+and, hence, not picked up from their configuration!</p><br /><b>Default value is</b>: <tt>true</tt>.<br /><b>User property is</b>: <tt>hibernate.schema.export</tt>.</td>
+ </tr>
+
+<tr class="a">
+
+<td><b><a href="#force">force</a></b></td>
+
+<td><tt>boolean</tt></td>
+
+<td><tt>1.0</tt></td>
+
+<td>Force execution
+
+<p>Force execution, even if no modified or newly added annotated
+classes where found and the dialect was not changed.</p>
+
+<p><tt>skip</tt> takes precedence over <tt>force</tt>.</p>
+
+<p><b>Important:</b> This configuration value can only be
+configured through the <tt>pom.xml</tt>, or by the definition
+of a system-property, because it is not known by Hibernate nor JPA
+and, hence, not picked up from their configuration!</p><br /><b>Default value is</b>: <tt>false</tt>.<br /><b>User property is</b>: <tt>hibernate.schema.force</tt>.</td>
+ </tr>
+
+<tr class="b">
+
+<td><b><a href="#format">format</a></b></td>
+
+<td><tt>Boolean</tt></td>
+
+<td><tt>1.0</tt></td>
+
+<td>Format output-file.<br /><b>User property is</b>: <tt>hibernate.format_sql</tt>.</td>
+ </tr>
+
+<tr class="a">
+
+<td><b><a href="#hibernateConfig">hibernateConfig</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>1.1.0</tt></td>
+
+<td>Path to Hibernate configuration file (.cfg.xml). If this parameter
+is specified, the plugin will try to load configuration values from
+a file with the given path or a ressource on the classpath with the
+given name. If both fails, the execution of the plugin will fail.
+
+<p>If this parameter is not set the plugin will load configuration
+values from a ressource named <tt>hibernate.cfg.xml</tt> on the
+classpath, if it is present, but will not fail if there is no such
+ressource.</p>
+
+<p>During ressource-lookup, the test-classpath takes
+precedence.</p>
+
+<p>Settings in this file will overwrite settings in the properties
+file.</p><br /></td>
+ </tr>
+
+<tr class="b">
+
+<td><b><a href="#hibernateProperties">hibernateProperties</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>1.0</tt></td>
+
+<td>Path to a file or name of a ressource with hibernate properties. If
+this parameter is specified, the plugin will try to load
+configuration values from a file with the given path or a ressource
+on the classpath with the given name. If both fails, the execution
+of the plugin will fail.
+
+<p>If this parameter is not set the plugin will load configuration
+values from a ressource named <tt>hibernate.properties</tt> on
+the classpath, if it is present, but will not fail if there is no
+such ressource.</p>
+
+<p>During ressource-lookup, the test-classpath takes
+precedence.</p><br /></td>
+ </tr>
+
+<tr class="a">
+
+<td><b><a href="#implicitNamingStrategy">implicitNamingStrategy</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>2.0</tt></td>
+
+<td>Implicit naming strategy<br /><b>User property is</b>: <tt>hibernate.implicit_naming_strategy</tt>.</td>
+ </tr>
+
+<tr class="b">
+
+<td><b><a href="#mappings">mappings</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>1.0.2</tt></td>
+
+<td>List of Hibernate-Mapping-Files (XML). Multiple files can be
+separated with white-spaces and/or commas.<br /><b>User property is</b>: <tt>hibernate.mapping</tt>.</td>
+ </tr>
+
+<tr class="a">
+
+<td><b><a href="#outputDirectory">outputDirectory</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>1.0</tt></td>
+
+<td>Classes-Directory to scan.
+
+<p>This parameter defaults to the maven build-output-directory for
+classes. Additionally, all dependencies are scanned for annotated
+classes.</p>
+
+<p><b>Important:</b> This configuration value can only be
+configured through the <tt>pom.xml</tt>, or by the definition
+of a system-property, because it is not known by Hibernate nor JPA
+and, hence, not picked up from their configuration!</p><br /><b>User property is</b>: <tt>project.build.outputDirectory</tt>.</td>
+ </tr>
+
+<tr class="b">
+
+<td><b><a href="#outputFile">outputFile</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>1.0</tt></td>
+
+<td>Output file.
+
+<p>If the specified filename is not absolut, the file will be
+created relative to the project build directory
+(<tt>project.build.directory</tt>).</p><br /><b>Default value is</b>: <tt>create.sql</tt>.<br /><b>User property is</b>: <tt>hibernate.schema.export.create</tt>.</td>
+ </tr>
+
+<tr class="a">
+
+<td><b><a href="#password">password</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>1.0</tt></td>
+
+<td>Database password<br /><b>User property is</b>: <tt>hibernate.connection.password</tt>.</td>
+ </tr>
+
+<tr class="b">
+
+<td><b><a href="#persistenceUnit">persistenceUnit</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>1.1.0</tt></td>
+
+<td>Name of the persistence-unit. If this parameter is specified, the
+plugin will try to load configuration values from a
+persistence-unit with the specified name. If no such
+persistence-unit can be found, the plugin will throw an exception.
+
+<p>If this parameter is not set and there is only one
+persistence-unit available, that unit will be used automatically.
+But if this parameter is not set and there are multiple
+persistence-units available on, the class-path, the execution of
+the plugin will fail.</p>
+
+<p>Settings in this file will overwrite settings in the properties
+or the configuration file.</p><br /></td>
+ </tr>
+
+<tr class="a">
+
+<td><b><a href="#physicalNamingStrategy">physicalNamingStrategy</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>2.0</tt></td>
+
+<td>Physical naming strategy<br /><b>User property is</b>: <tt>hibernate.physical_naming_strategy</tt>.</td>
+ </tr>
+
+<tr class="b">
+
+<td><b><a href="#scanClasses">scanClasses</a></b></td>
+
+<td><tt>Boolean</tt></td>
+
+<td><tt>2.0</tt></td>
+
+<td>Wether the project should be scanned for annotated-classes, or not
+
+<p>This parameter is intended to allow overwriting of the parameter
+<tt>exclude-unlisted-classes</tt> of a
+<tt>persistence-unit</tt>. If not specified, it defaults to
+<tt>true</tt></p><br /><b>User property is</b>: <tt>hibernate.schema.scan.classes</tt>.</td>
+ </tr>
+
+<tr class="a">
+
+<td><b><a href="#scanDependencies">scanDependencies</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>1.0.3</tt></td>
+
+<td>Dependency-Scopes, that should be scanned for annotated classes.
+
+<p>By default, only dependencies in the scope <tt>compile</tt>
+are scanned for annotated classes. Multiple scopes can be seperated
+by white space or commas.</p>
+
+<p>If you do not want any dependencies to be scanned for annotated
+classes, set this parameter to <tt>none</tt>.</p>
+
+<p>The plugin does not scan for annotated classes in transitive
+dependencies. If some of your annotated classes are hidden in a
+transitive dependency, you can simply add that dependency
+explicitly.</p><br /><b>Default value is</b>: <tt>compile</tt>.<br /><b>User property is</b>: <tt>hibernate.schema.scan.dependencies</tt>.</td>
+ </tr>
+
+<tr class="b">
+
+<td><b><a href="#scanTestClasses">scanTestClasses</a></b></td>
+
+<td><tt>Boolean</tt></td>
+
+<td><tt>1.0.1</tt></td>
+
+<td>Whether to scan the test-branch of the project for annotated
+classes, or not.
+
+<p>If this parameter is set to <tt>true</tt> the test-classes
+of the artifact will be scanned for hibernate-annotated classes
+additionally.</p>
+
+<p><b>Important:</b> This configuration value can only be
+configured through the <tt>pom.xml</tt>, or by the definition
+of a system-property, because it is not known by Hibernate nor JPA
+and, hence, not picked up from their configuration!</p><br /><b>Default value is</b>: <tt>false</tt>.<br /><b>User property is</b>: <tt>hibernate.schema.scan.test_classes</tt>.</td>
+ </tr>
+
+<tr class="a">
+
+<td><b><a href="#show">show</a></b></td>
+
+<td><tt>Boolean</tt></td>
+
+<td><tt>1.0</tt></td>
+
+<td>Show the generated SQL in the command-line output.<br /><b>User property is</b>: <tt>hibernate.show_sql</tt>.</td>
+ </tr>
+
+<tr class="b">
+
+<td><b><a href="#skip">skip</a></b></td>
+
+<td><tt>boolean</tt></td>
+
+<td><tt>1.0</tt></td>
+
+<td>Skip execution
+
+<p>If set to <tt>true</tt>, the execution is skipped.</p>
+
+<p>A skipped execution is signaled via the maven-property
+<tt>${hibernate.schema.skipped}</tt>.</p>
+
+<p>The execution is skipped automatically, if no modified or newly
+added annotated classes are found and the dialect was not
+changed.</p>
+
+<p><b>Important:</b> This configuration value can only be
+configured through the <tt>pom.xml</tt>, or by the definition
+of a system-property, because it is not known by Hibernate nor JPA
+and, hence, not picked up from their configuration!</p><br /><b>Default value is</b>: <tt>${maven.test.skip}</tt>.<br /><b>User property is</b>: <tt>hibernate.schema.skip</tt>.</td>
+ </tr>
+
+<tr class="a">
+
+<td><b><a href="#testOutputDirectory">testOutputDirectory</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>1.0.2</tt></td>
+
+<td>Test-Classes-Directory to scan.
+
+<p>This parameter defaults to the maven build-output-directory for
+test-classes.</p>
+
+<p>This parameter is only used, when <tt>scanTestClasses</tt>
+is set to <tt>true</tt>!</p>
+
+<p><b>Important:</b> This configuration value can only be
+configured through the <tt>pom.xml</tt>, or by the definition
+of a system-property, because it is not known by Hibernate nor JPA
+and, hence, not picked up from their configuration!</p><br /><b>User property is</b>: <tt>project.build.testOutputDirectory</tt>.</td>
+ </tr>
+
+<tr class="b">
+
+<td><b><a href="#url">url</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>1.0</tt></td>
+
+<td>Database URL.<br /><b>User property is</b>: <tt>hibernate.connection.url</tt>.</td>
+ </tr>
+
+<tr class="a">
+
+<td><b><a href="#username">username</a></b></td>
+
+<td><tt>String</tt></td>
+
+<td><tt>1.0</tt></td>
+
+<td>Database username<br /><b>User property is</b>: <tt>hibernate.connection.username</tt>.</td>
+ </tr>
+ </table>
+ </div>
+
+<div class="section">
+<h3><a name="Parameter_Details"></a>Parameter Details</h3>
+
+<p><b><a name="createNamespaces">createNamespaces</a>:</b></p>
+
+<div>Specifies whether to automatically create also the database
+schema/catalog.</div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.Boolean</tt></li>
+
+<li><b>Since</b>: <tt>2.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.hbm2dll.create_namespaces</tt></li>
+
+<li><b>Default</b>: <tt>false</tt></li>
+ </ul><hr />
+<p><b><a name="delimiter">delimiter</a>:</b></p>
+
+<div>Delimiter in output-file.
+
+<p><b>Important:</b> This configuration value can only be
+configured through the <tt>pom.xml</tt>, or by the definition
+of a system-property, because it is not known by Hibernate nor JPA
+and, hence, not picked up from their configuration!</p></div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>1.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.schema.delimiter</tt></li>
+
+<li><b>Default</b>: <tt>;</tt></li>
+ </ul><hr />
+<p><b><a name="dialect">dialect</a>:</b></p>
+
+<div>Hibernate dialect.</div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>1.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.dialect</tt></li>
+ </ul><hr />
+<p><b><a name="driver">driver</a>:</b></p>
+
+<div>SQL-Driver name.</div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>1.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.connection.driver_class</tt></li>
+ </ul><hr />
+<p><b><a name="export">export</a>:</b></p>
+
+<div>Export the database-schma to the database. If set to
+<tt>false</tt>, only the SQL-script is created and the database
+is not touched.
+
+<p><b>Important:</b> This configuration value can only be
+configured through the <tt>pom.xml</tt>, or by the definition
+of a system-property, because it is not known by Hibernate nor JPA
+and, hence, not picked up from their configuration!</p></div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.Boolean</tt></li>
+
+<li><b>Since</b>: <tt>2.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.schema.export</tt></li>
+
+<li><b>Default</b>: <tt>true</tt></li>
+ </ul><hr />
+<p><b><a name="force">force</a>:</b></p>
+
+<div>Force execution
+
+<p>Force execution, even if no modified or newly added annotated
+classes where found and the dialect was not changed.</p>
+
+<p><tt>skip</tt> takes precedence over <tt>force</tt>.</p>
+
+<p><b>Important:</b> This configuration value can only be
+configured through the <tt>pom.xml</tt>, or by the definition
+of a system-property, because it is not known by Hibernate nor JPA
+and, hence, not picked up from their configuration!</p></div>
+
+<ul>
+
+<li><b>Type</b>: <tt>boolean</tt></li>
+
+<li><b>Since</b>: <tt>1.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.schema.force</tt></li>
+
+<li><b>Default</b>: <tt>false</tt></li>
+ </ul><hr />
+<p><b><a name="format">format</a>:</b></p>
+
+<div>Format output-file.</div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.Boolean</tt></li>
+
+<li><b>Since</b>: <tt>1.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.format_sql</tt></li>
+ </ul><hr />
+<p><b><a name="hibernateConfig">hibernateConfig</a>:</b></p>
+
+<div>Path to Hibernate configuration file (.cfg.xml). If this parameter
+is specified, the plugin will try to load configuration values from
+a file with the given path or a ressource on the classpath with the
+given name. If both fails, the execution of the plugin will fail.
+
+<p>If this parameter is not set the plugin will load configuration
+values from a ressource named <tt>hibernate.cfg.xml</tt> on the
+classpath, if it is present, but will not fail if there is no such
+ressource.</p>
+
+<p>During ressource-lookup, the test-classpath takes
+precedence.</p>
+
+<p>Settings in this file will overwrite settings in the properties
+file.</p></div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>1.1.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+ </ul><hr />
+<p><b><a name="hibernateProperties">hibernateProperties</a>:</b></p>
+
+<div>Path to a file or name of a ressource with hibernate properties. If
+this parameter is specified, the plugin will try to load
+configuration values from a file with the given path or a ressource
+on the classpath with the given name. If both fails, the execution
+of the plugin will fail.
+
+<p>If this parameter is not set the plugin will load configuration
+values from a ressource named <tt>hibernate.properties</tt> on
+the classpath, if it is present, but will not fail if there is no
+such ressource.</p>
+
+<p>During ressource-lookup, the test-classpath takes
+precedence.</p></div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>1.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+ </ul><hr />
+<p><b><a name="implicitNamingStrategy">implicitNamingStrategy</a>:</b></p>
+
+<div>Implicit naming strategy</div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>2.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.implicit_naming_strategy</tt></li>
+ </ul><hr />
+<p><b><a name="mappings">mappings</a>:</b></p>
+
+<div>List of Hibernate-Mapping-Files (XML). Multiple files can be
+separated with white-spaces and/or commas.</div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>1.0.2</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.mapping</tt></li>
+ </ul><hr />
+<p><b><a name="outputDirectory">outputDirectory</a>:</b></p>
+
+<div>Classes-Directory to scan.
+
+<p>This parameter defaults to the maven build-output-directory for
+classes. Additionally, all dependencies are scanned for annotated
+classes.</p>
+
+<p><b>Important:</b> This configuration value can only be
+configured through the <tt>pom.xml</tt>, or by the definition
+of a system-property, because it is not known by Hibernate nor JPA
+and, hence, not picked up from their configuration!</p></div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>1.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>project.build.outputDirectory</tt></li>
+ </ul><hr />
+<p><b><a name="outputFile">outputFile</a>:</b></p>
+
+<div>Output file.
+
+<p>If the specified filename is not absolut, the file will be
+created relative to the project build directory
+(<tt>project.build.directory</tt>).</p></div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>1.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.schema.export.create</tt></li>
+
+<li><b>Default</b>: <tt>create.sql</tt></li>
+ </ul><hr />
+<p><b><a name="password">password</a>:</b></p>
+
+<div>Database password</div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>1.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.connection.password</tt></li>
+ </ul><hr />
+<p><b><a name="persistenceUnit">persistenceUnit</a>:</b></p>
+
+<div>Name of the persistence-unit. If this parameter is specified, the
+plugin will try to load configuration values from a
+persistence-unit with the specified name. If no such
+persistence-unit can be found, the plugin will throw an exception.
+
+<p>If this parameter is not set and there is only one
+persistence-unit available, that unit will be used automatically.
+But if this parameter is not set and there are multiple
+persistence-units available on, the class-path, the execution of
+the plugin will fail.</p>
+
+<p>Settings in this file will overwrite settings in the properties
+or the configuration file.</p></div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>1.1.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+ </ul><hr />
+<p><b><a name="physicalNamingStrategy">physicalNamingStrategy</a>:</b></p>
+
+<div>Physical naming strategy</div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>2.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.physical_naming_strategy</tt></li>
+ </ul><hr />
+<p><b><a name="scanClasses">scanClasses</a>:</b></p>
+
+<div>Wether the project should be scanned for annotated-classes, or not
+
+<p>This parameter is intended to allow overwriting of the parameter
+<tt>exclude-unlisted-classes</tt> of a
+<tt>persistence-unit</tt>. If not specified, it defaults to
+<tt>true</tt></p></div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.Boolean</tt></li>
+
+<li><b>Since</b>: <tt>2.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.schema.scan.classes</tt></li>
+ </ul><hr />
+<p><b><a name="scanDependencies">scanDependencies</a>:</b></p>
+
+<div>Dependency-Scopes, that should be scanned for annotated classes.
+
+<p>By default, only dependencies in the scope <tt>compile</tt>
+are scanned for annotated classes. Multiple scopes can be seperated
+by white space or commas.</p>
+
+<p>If you do not want any dependencies to be scanned for annotated
+classes, set this parameter to <tt>none</tt>.</p>
+
+<p>The plugin does not scan for annotated classes in transitive
+dependencies. If some of your annotated classes are hidden in a
+transitive dependency, you can simply add that dependency
+explicitly.</p></div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>1.0.3</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.schema.scan.dependencies</tt></li>
+
+<li><b>Default</b>: <tt>compile</tt></li>
+ </ul><hr />
+<p><b><a name="scanTestClasses">scanTestClasses</a>:</b></p>
+
+<div>Whether to scan the test-branch of the project for annotated
+classes, or not.
+
+<p>If this parameter is set to <tt>true</tt> the test-classes
+of the artifact will be scanned for hibernate-annotated classes
+additionally.</p>
+
+<p><b>Important:</b> This configuration value can only be
+configured through the <tt>pom.xml</tt>, or by the definition
+of a system-property, because it is not known by Hibernate nor JPA
+and, hence, not picked up from their configuration!</p></div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.Boolean</tt></li>
+
+<li><b>Since</b>: <tt>1.0.1</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.schema.scan.test_classes</tt></li>
+
+<li><b>Default</b>: <tt>false</tt></li>
+ </ul><hr />
+<p><b><a name="show">show</a>:</b></p>
+
+<div>Show the generated SQL in the command-line output.</div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.Boolean</tt></li>
+
+<li><b>Since</b>: <tt>1.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.show_sql</tt></li>
+ </ul><hr />
+<p><b><a name="skip">skip</a>:</b></p>
+
+<div>Skip execution
+
+<p>If set to <tt>true</tt>, the execution is skipped.</p>
+
+<p>A skipped execution is signaled via the maven-property
+<tt>${hibernate.schema.skipped}</tt>.</p>
+
+<p>The execution is skipped automatically, if no modified or newly
+added annotated classes are found and the dialect was not
+changed.</p>
+
+<p><b>Important:</b> This configuration value can only be
+configured through the <tt>pom.xml</tt>, or by the definition
+of a system-property, because it is not known by Hibernate nor JPA
+and, hence, not picked up from their configuration!</p></div>
+
+<ul>
+
+<li><b>Type</b>: <tt>boolean</tt></li>
+
+<li><b>Since</b>: <tt>1.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.schema.skip</tt></li>
+
+<li><b>Default</b>: <tt>${maven.test.skip}</tt></li>
+ </ul><hr />
+<p><b><a name="testOutputDirectory">testOutputDirectory</a>:</b></p>
+
+<div>Test-Classes-Directory to scan.
+
+<p>This parameter defaults to the maven build-output-directory for
+test-classes.</p>
+
+<p>This parameter is only used, when <tt>scanTestClasses</tt>
+is set to <tt>true</tt>!</p>
+
+<p><b>Important:</b> This configuration value can only be
+configured through the <tt>pom.xml</tt>, or by the definition
+of a system-property, because it is not known by Hibernate nor JPA
+and, hence, not picked up from their configuration!</p></div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>1.0.2</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>project.build.testOutputDirectory</tt></li>
+ </ul><hr />
+<p><b><a name="url">url</a>:</b></p>
+
+<div>Database URL.</div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>1.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.connection.url</tt></li>
+ </ul><hr />
+<p><b><a name="username">username</a>:</b></p>
+
+<div>Database username</div>
+
+<ul>
+
+<li><b>Type</b>: <tt>java.lang.String</tt></li>
+
+<li><b>Since</b>: <tt>1.0</tt></li>
+
+<li><b>Required</b>: <tt>No</tt></li>
+
+<li><b>User Property</b>: <tt>hibernate.connection.username</tt></li>
+ </ul>
+ </div>
+ </div>
+
+
+ </article>
+ <div class="marginal">
+ <nav id="nav">
+ <hr class="n" />
+ <a id="navigation"></a>
+ <a class="hide" href="#top" title="Show Content">Jump back to the top of the page</a>
+ <h2 class="nav menu">Section-Menu</h2>
+ <ul id="menu">
+ <li class="m blog"><a href="/blog/" class="m">Blog</a></li>
+ <li class="m projects"><a href="/projects.html" class="m selected">Projects</a></li>
+ <li class="m about"><a href="/about.html" class="m">About</a></li>
+ </ul>
+ <h2 class="nav submenu">
+ <span class="s">Submenu for section</span>
+ <a class="s selected" href="/projects.html">Projects</a>
+ </h2>
+ <ul id="submenu" class="s">
+ <li class="s sub">
+ <a class="s selected" href="./index.html">Hibernate Maven Plugin</a>
+ <ul class="s active">
+ <li class="s">
+ <a href="configuration.html" class="s" title="Configuration Examples">Configuration Examples</a>
+ </li>
+ <li class="s">
+ <strong class="s">Goal: CREATE</strong>
+ </li>
+ <li class="s">
+ <a href="drop-mojo.html" class="s" title="Goal: DROP">Goal: DROP</a>
+ </li>
+ <li class="s">
+ <a href="debugging.html" class="s" title="Enable Debug-Output">Enable Debug-Output</a>
+ </li>
+ <li class="s">
+ <a href="skip.html" class="s" title="Skipping Execution">Skipping Execution</a>
+ </li>
+ <li class="s">
+ <a href="force.html" class="s" title="Force Exceution">Force Exceution</a>
+ </li>
+ <li class="s">
+ <a href="pitfalls.html" class="s" title="Known Pitfalls (FAQ)">Known Pitfalls (FAQ)</a>
+ </li>
+ <li class="s sub">
+ <a href="project-info.html" class="s" title="Project Information">Project Information</a>
+ </li>
+ <li class="s sub">
+ <a href="project-reports.html" class="s" title="Project Reports">Project Reports</a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ <hr class="n" />
+ </nav>
+ <aside class="m">
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img class="poweredBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
+ </a>
+ </aside>
+ </div>
+ </main>
+ <footer id="footer">
+ <hr class="f" />
+ <ul id="footerlinks">
+ <li class="f" id="copyright">© <strong>mo</strong> 2016
+ </li>
+ <li class="f"><a class="f" href="/impressum.html">Impressum</a></li>
+ <li class="f about"><a class="f" href="/about.html">About</a></li>
+ </ul>
+ </footer>
+ </div>
+ <script type="text/javascript"><!--//--><![CDATA[//><!--
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-571104-3']);
+ _gaq.push(['_trackPageview']);
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ //--><!]]>
+ </script>
+ </body>
+</html>