--- /dev/null
+---
+title: Hibernate Maven Plugin
+---
+ <article class="maincontent">
+
+
+
+
+<h1>Hibernate Maven Plugin</h1>
+ <section>
+<h2><a name="A_simple_plugin_for_generating_a_database-schema_from_Hibernate-Mappings"></a>A simple plugin for generating a database-schema from Hibernate-Mappings</h2>
+
+<p>
+ The <b>hibernate-maven-plugin</b> is a plugin for generating a database-schema
+ from your Hibernate-Mappings and create or update your database
+ accordingly.
+ Its main usage is to automatically create and populate a test-database
+ for unit-tests in cooperation with the
+ <a class="externalLink" href="http://mojo.codehaus.org/dbunit-maven-plugin">dbunit-maven-plugin</a>.
+ </p>
+
+<p>
+ The plugin was designed with three main goals in mind:
+ </p>
+
+<ul>
+
+<li>It should be easy to use.</li>
+
+<li>It should be maximal unlikely, to erase a producation-database by accident.</li>
+
+<li>It should not slow down the development cycle.</li>
+ </ul>
+
+<p>
+ To achieve the first goal, the convention-over-configuration paradigma
+ was applied and the plugin was stuffed with usefull logging-messages.
+ So, if in doubt, just turn on the <a href="./debugging.html">debugging output</a> with the <code>mvn -X ...</code>.
+ </p>
+
+<p>
+ To achieve the second goal, the precedence in which the configuration
+ locations are consulted was layouted in a way that makes it possible, to
+ prevent overwrites of the wrong database by accident.
+ </p>
+
+<p>
+ Last but not least, in order to not slow down the development cycle, the
+ hibernate-maven-plugin only executes the generated SQL, if the mapping
+ or the configuration has changed (or if you force it to do so).
+ </p>
+
+<p>
+ For more information about the inspiration to write this tiny plugin,
+ <a href="/hibernate-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/">read our blog-article about the hibernate-maven-plugin</a>.
+ </p>
+ </section><section>
+<h2><a name="Documentation"></a>Documentation</h2>
+
+<ul>
+
+<li>
+ See <a href="./configuration.html">Configuration Examples</a> for Usage-Explanations
+ and simple examples of how to use this plugin.
+ </li>
+
+<li>
+ See <a href="./create-mojo.html">hibernate:create</a>,
+ See <a href="./update-mojo.html">hibernate:update</a> and
+ See <a href="./drop-mojo.html">hibernate:drop</a> and
+ See <a href="./help-mojo.html">hibernate:help</a> and
+ <a href="./plugin-info.html">Plugin Documentation</a> for the full
+ autogenerated documentation. These are mostly configuration-options
+ from the Hibernate-Tooling, that does the work in the background.
+ </li>
+ </ul>
+ </section><section>
+<h2><a name="Releases"></a>Releases</h2>
+
+<ul>
+
+<li><a class="externalLink" href="https://juplo.de/hibernate-maven-plugin/index.html">current version</a></li>
+
+<li>2.1.1 (this version)</li>
+
+<li><a href="/projects/hibernate-maven-plugin/2.1.0/index.html">2.1.0</a></li>
+
+<li><a href="/projects/hibernate-maven-plugin/2.0.0/index.html">2.0.0</a></li>
+
+<li><a href="/projects/hibernate-maven-plugin/1.1.1/index.html">1.1.1</a></li>
+
+<li><a href="/projects/hibernate-maven-plugin/1.1.0/index.html">1.1.0</a></li>
+
+<li><a href="/projects/hibernate-maven-plugin/1.0.5/index.html">1.0.5</a></li>
+
+<li><a href="/projects/hibernate-maven-plugin/1.0.4/index.html">1.0.4</a></li>
+
+<li><a href="/projects/hibernate-maven-plugin/1.0.3/index.html">1.0.3</a></li>
+
+<li><a href="/projects/hibernate-maven-plugin/1.0.2/index.html">1.0.2</a></li>
+
+<li><a href="/projects/hibernate-maven-plugin/1.0.1/index.html">1.0.1</a></li>
+
+<li><a href="/projects/hibernate-maven-plugin/1.0/index.html">1.0</a></li>
+ </ul>
+ </section>
+
+ </article>