-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- </head>
- <body>
- <header><h1>Configuration Examples</h1></header>
- <h2>Configuration through a hibernate.properties-File</h2>
+# Configuration Examples
+
+## Configuration through a hibernate.properties-File
+
<p>
The most simple way to configure the plugin is, to put all the
hibernate-configuration in a <strong>hibernate.properties</strong>-file on your
</goals>
</execution>
</executions>
-</plugin></pre>
+</plugin>
+</pre>
<p>
But be aware, that in this case the database-url, that is
build in the application is the same that is used while testing, where
<configuration>
<url><![CDATA[jdbc:mysql://localhost/test-db]]></url>
</configuration>
-</plugin></pre>
+</plugin>
+</pre>
<p>
Configuration properties, that are set in the <code>configuration</code>-section
of the plugin-configuration cannnot be overwritten elsewere (for details
- see <a href="#precedence">Configuration-Method-Precedence</a>).
+ see <a href="#Configuration_Method_Precedence">Configuration-Method-Precedence</a>).
You never can overwrite them by accident when specifying a property on
the commandline or in your <code>settings.xml</code>.
</p>
- <h2>Configuration through maven-properties</h2>
+
+## Configuration through maven-properties
+
<p>
Alternatively, it is possible, to configure the plugin via maven-properties.
Each relevant configuration-option has a corresponding maven-property
testing):
</p>
<pre class="prettyprint linenums lang-html">
+
<properties>
<hibernate.connection.driver_class>org.hsqldb.jdbcDriver</hibernate.connection.driver_class>
<hibernate.dialect>org.hibernate.dialect.HSQLDialect</hibernate.dialect>
</configuration>
</plugin>
-<plugins></pre>
+<plugins>
+ </pre>
+ <p>
+ This way, you can reuse the same properties to provide a
+ default-configurationthe, that is build into your application, and
+ overwrite the database-url, that is used during testing to prevent
+ accidential drops of your production database.
+ </p>
<h2>Configuration through the plugin-configuration</h2>
<p>
A third way for configuring the plugin is the plugin-configuration.
<username>sa</username>
<password></password>
</configuration>
-</plugin></pre>
+</plugin>
+</pre>
<p>
The parameter <strong>hibernateProperties</strong> (name of the hibernate-properties-file
to use, defaults to <strong>hibernate.properties</strong>) can only be configured through
For more explanations, see the
<a href="./export-mojo.html">Documentation of the export-Mojo</a>.
</p>
- <h2 id="precedence">Configuration-Method-Precedence</h2>
+
+## Configuration-Method-Precedence
+
<p>
The configuration is gathered in a fix order:
</p>
<configuration>
<password>${my-password-property}</password>
</configuration>
-</plugin></pre>
- </body>
-</html>
+</plugin>
+</pre>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- </head>
- <body>
- <header><h1>Enable Debugging-Output</h1></header>
+# Enable Debugging-Output
+
<p>
If you are new to <code>hibernate4-maven-plugin</code>, in many cases, the
{Configuration-Method-Precedence} may be the source of configuration
<p>
<strong>But be warned:</strong> <code>hibernate4-maven-plugin</code> tends to be very chatty ;)
</p>
- </body>
-</html>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- </head>
- <body>
- <header><h1>Force Execution</h1></header>
+# Force Execution
+
<p>
The hibernate4-maven-plugin computes MD5-sums for all found annotated
classes and stores them together with the generated schema.
Or you may specify <code>-Dhibernate.export.force=true</code> at the command line,
if you want to force hibernate4-maven-plugin only once.
</p>
- </body>
-</html>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- </head>
- <body>
- <header><h1>${project.name}</h1></header>
- <h2>${project.description}</h2>
+# ${project.name}
+
+## ${project.description}
+
<p>
The <strong>hibernate4-maven-plugin</strong> is a plugin for generating a database-schema
from your Hibernate-4-Mappings and create or update your database
For more information about the inspiration to write this tiny plugin,
<a href="/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/">read our blog-article about the hibernate4-maven-plugin</a>.
</p>
- <h2>Documentation</h2>
+
+## Documentation
+
<ul>
<li>
See <a href="./configuration.html">Configuration Examples</a> for Usage-Explanations
the work in the background.
</li>
</ul>
- <h2>Releases</h2>
+
+## Releases
+
<ul>
<li><a href="https://juplo.de/hibernate-maven-plugin/index.html">current version</a></li>
<li>${project.version} (this version)</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>
- </body>
-</html>
+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- </head>
- <body>
- <header><h1>Issue Tracking</h1></header>
- <strong>There is no bug-tracking system set up for this project!</strong>
- <p>
- Please send your bug-reports, questions or feature-requests directly
- to the developer.
- </p>
- </body>
-</html>
+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- </head>
- <body>
- <header><h1>Mailing Lists</h1></header>
- <strong>There are no mailinglists defined for this project!</strong>
- <p>
- Please send your bug-reports, questions or feature-requests directly
- to the developer.
- </p>
- </body>
-</html>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- </head>
- <body>
- <header><h1>Known Pitfalls (FAQ)</h1></header>
- <h2>Annotated classes in dependencies are not found.</h2>
+# Known Pitfalls (FAQ)
+
+## Annotated classes in dependencies are not found.
+
<p>
hibernate4-maven-plugin by default scans dependencies in the scope
<code>compile</code>. You can configure it to scan dependencies in other
annotated classes are hidden in a transitive dependency, you can simply
add that dependency explicitly.
</p>
- <h2>hibernate4-maven-plugin always needs a database-connection</h2>
+
+## hibernate4-maven-plugin always needs a database-connection
+
<p>
The default-configuration uses the EXPORT-target of the SchemaExport-Tool.
If you do not need to create a database with the evaluated schema, you can
But even when no database is to be created, hibernate always needs to know
the dialect. Hence, the plugin will fail if this parameter is missing!
</p>
- <h2>Dependency for driver-class XYZ is missing</h2>
+
+## Dependency for driver-class XYZ is missing
+
<p>
One regular problem is the scope of the jdbc-driver-dependency.
It is very unlikely, that this dependency is needed at compile-time.
Because otherwise, this dependency will unnecessarily bloat the
runtime-dependencies of your project.
</p>
- <h2 id="fails">DBUnit fails after execution of hibernate4 was skipped because nothing has changed</h2>
+
+## DBUnit fails after execution of hibernate was skipped because nothing has changed
+
<p>
If hibernate4-maven-plugin skips its excecution, this may lead to errors in
other plugins.
<skip>${hibernate.export.skipped}</skip>
</configuration>
</plugin></pre>
- <h2>The database will not be recreated after a manual drop/clean</h2>
+
+## The database will not be recreated after a manual drop/clean
+
<p>
If one manually drops the database or removes the hsqldb-files, it will not
be recreated by the hibernate4-maven-plugin, because it cannot detect, that
Otherwise the recreation must be <a href="./force.html">forced</a>:
</p>
<pre class="prettyprint">
-mvn hibernate4:export -Dhibernate.export.force=true</pre>
- <h2>The hibernate4:export goal is not executed, when tests are skipped</h2>
+mvn hibernate4:create -Dhibernate.schema.force=true</pre>
+
+## The hibernate:create goal is not executed, when tests are skipped
+
<p>
The hibernate4-maven-plugin automatically skips its execution, when
<code>maven.test.skip</code> is set to <code>true</code>. If you need it to be always
Background-information for this design-decission can be found on the extra
page <a href="./skip.html">To skip or not to skip: that is the question</a>...
</p>
- <h2>I do not want my dependencies to be scanned for hibernate annotations</h2>
+
+## I do not want my dependencies to be scanned for hibernate annotations
+
<p>
If you do not want your dependencies to be scanned for hibernate annotations,
you can pass <code>-Dhibernate.export.scan_dependencies=none</code> to maven
<scanDependencies>none</scanDependencies>
</configuration>
</plugin></pre>
- <h2>No annotated classes found</h2>
+
+## No annotated classes found
+
<p>
If you are working under Windows and get the error-message
<code>No annotated classes found in directory C:\projects\X Y Z\path-to-project\target\classes</code>,
You should consider to upgrade to that version of the plugin.
</strong>
</p>
- </body>
-</html>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- </head>
- <body>
- <header><h1>Skipping Execution</h1></header>
+# Skipping Execution
+
<p>
In most use-cases, the hibernate4-maven-plugin is used to create a
test-database automatically. In this use-cases, it is very likely, that it
<code>foo.bar</code> to <code>true</code>. For example, if you specify <code>-Dfoo.bar=true</code>
on the command-line.
</p>
- </body>
-</html>
<project>
<body>
<menu>
- <item name="Overview" href="index.html?about"/>
+ <item name="Overview" href="index.html"/>
<item name="Configuration Examples" href="configuration.html"/>
<item name="Parameter Documentation" href="export-mojo.html"/>
<item name="Enable Debug-Output" href="debugging.html"/>
</body>
<skin>
<groupId>de.juplo.maven</groupId>
- <artifactId>maven-thymeleaf-skin</artifactId>
- <version>1.1.2</version>
+ <artifactId>maven-siteliberator-skin</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
</skin>
- <custom>
- <thymeproxy>
- <prefix>/projects</prefix>
- <path>/hibernate-maven-plugin/</path>
- <crumbs>"/index.html","/projects.html"</crumbs>
- <command>th:replace="~{/templates/layout.html :: layout(uri='' + ~{:: code[class='site_uri']/text()}, title=~{:: title}, maincontent=~{:: .maincontent}, json='MERGE:' + ~{:: pre[class='json']/text()})}"</command>
- </thymeproxy>
- </custom>
</project>