-<!DOCTYPE html>
-<!--/*-->
-<!-- Generated by Apache Maven Doxia Site Renderer 1.6 at 2016-11-05 -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: integration.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: dependencies.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: dependency-info.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: distribution-management.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: index.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: license.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: plugin-management.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: plugins.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: team-list.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: source-repository.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: project-summary.html -->
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: project-info.html -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: testapidocs/index.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: apidocs/index.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: xref/index.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: xref-test/index.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: pmd.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: plugin-info.html -->
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: project-reports.html -->
-
-
-
-
- <!-- DONE WITH MENUE - - $page.name-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <!-- OVERWRITING PAGE - uri: index.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: configuration.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: export-mojo.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: debugging.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: skip.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: force.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- NEW PAGE - - - - - uri: pitfalls.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- OVERWRITING PAGE - uri: project-info.html -->
-
-
-
-
-
-
-
-
-
-
-
- <!-- OVERWRITING PAGE - uri: project-reports.html -->
-
-
-
-
- <!-- DONE WITH MENUE - - (no name)-->
-
-
-
-<!-- name: Configuration Examples -->
-<!-- title: Hibernate 4 Maven Plugin – -->
-<!-- short title: -->
-<!-- current page: configuration.html -->
-<!-- path: /hibernate-maven-plugin/ -->
-<!-- crumbs: {"uri":"/projects.html","name":"Projects"} -->
-<!-- pages: {integration.html={name=CI Management, uri=integration.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-info.html, name=Project Information}, {uri=integration.html, name=CI Management}]}, dependencies.html={name=Dependencies, uri=dependencies.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-info.html, name=Project Information}, {uri=dependencies.html, name=Dependencies}]}, dependency-info.html={name=Dependency Information, uri=dependency-info.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-info.html, name=Project Information}, {uri=dependency-info.html, name=Dependency Information}]}, distribution-management.html={name=Distribution Management, uri=distribution-management.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-info.html, name=Project Information}, {uri=distribution-management.html, name=Distribution Management}]}, index.html={name=Overview, uri=index.html, childs={index.html=Overview, configuration.html=Configuration Examples, export-mojo.html=Parameter Documentation, debugging.html=Enable Debug-Output, skip.html=Skipping Execution, force.html=Force Exceution, pitfalls.html=Known Pitfalls (FAQ), project-info.html=Project Information, project-reports.html=Project Reports}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=index.html, name=Overview}]}, license.html={name=Licenses, uri=license.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-info.html, name=Project Information}, {uri=license.html, name=Licenses}]}, plugin-management.html={name=Plugin Management, uri=plugin-management.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-info.html, name=Project Information}, {uri=plugin-management.html, name=Plugin Management}]}, plugins.html={name=Plugins, uri=plugins.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-info.html, name=Project Information}, {uri=plugins.html, name=Plugins}]}, team-list.html={name=Team, uri=team-list.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-info.html, name=Project Information}, {uri=team-list.html, name=Team}]}, source-repository.html={name=Source Code Management, uri=source-repository.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-info.html, name=Project Information}, {uri=source-repository.html, name=Source Code Management}]}, project-summary.html={name=Summary, uri=project-summary.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-info.html, name=Project Information}, {uri=project-summary.html, name=Summary}]}, project-info.html={name=Project Information, uri=project-info.html, childs={integration.html=CI Management, dependencies.html=Dependencies, dependency-info.html=Dependency Information, distribution-management.html=Distribution Management, index.html=About, license.html=Licenses, plugin-management.html=Plugin Management, plugins.html=Plugins, team-list.html=Team, source-repository.html=Source Code Management, project-summary.html=Summary}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-info.html, name=Project Information}]}, testapidocs/index.html={name=Test JavaDocs, uri=testapidocs/index.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-reports.html, name=Project Reports}, {uri=testapidocs/index.html, name=Test JavaDocs}]}, apidocs/index.html={name=JavaDocs, uri=apidocs/index.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-reports.html, name=Project Reports}, {uri=apidocs/index.html, name=JavaDocs}]}, xref/index.html={name=Source Xref, uri=xref/index.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-reports.html, name=Project Reports}, {uri=xref/index.html, name=Source Xref}]}, xref-test/index.html={name=Test Source Xref, uri=xref-test/index.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-reports.html, name=Project Reports}, {uri=xref-test/index.html, name=Test Source Xref}]}, pmd.html={name=PMD, uri=pmd.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-reports.html, name=Project Reports}, {uri=pmd.html, name=PMD}]}, plugin-info.html={name=Plugin Documentation, uri=plugin-info.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-reports.html, name=Project Reports}, {uri=plugin-info.html, name=Plugin Documentation}]}, project-reports.html={name=Project Reports, uri=project-reports.html, childs={testapidocs/index.html=Test JavaDocs, apidocs/index.html=JavaDocs, xref/index.html=Source Xref, xref-test/index.html=Test Source Xref, pmd.html=PMD, plugin-info.html=Plugin Documentation}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=project-reports.html, name=Project Reports}]}, configuration.html={name=Configuration Examples, uri=configuration.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=configuration.html, name=Configuration Examples}]}, export-mojo.html={name=Parameter Documentation, uri=export-mojo.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=export-mojo.html, name=Parameter Documentation}]}, debugging.html={name=Enable Debug-Output, uri=debugging.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=debugging.html, name=Enable Debug-Output}]}, skip.html={name=Skipping Execution, uri=skip.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=skip.html, name=Skipping Execution}]}, force.html={name=Force Exceution, uri=force.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=force.html, name=Force Exceution}]}, pitfalls.html={name=Known Pitfalls (FAQ), uri=pitfalls.html, childs={}, crumbs=[{uri=index.html, name=Hibernate 4 Maven Plugin}, {uri=pitfalls.html, name=Known Pitfalls (FAQ)}]}} -->
-
-
-<!--*/-->
-<html
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:layout="http://www.thymeleaf.org"
- layout:decorator="templates/layout"
- th:with="
- uri='/hibernate-maven-plugin/configuration.html',
- json='MERGE:{"pages":{"/hibernate-maven-plugin/integration.html":{"name":"CI Management","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-info.html","name":"Project Information"},{"uri":"/hibernate-maven-plugin/integration.html","name":"CI Management"}]},"/hibernate-maven-plugin/dependencies.html":{"name":"Dependencies","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-info.html","name":"Project Information"},{"uri":"/hibernate-maven-plugin/dependencies.html","name":"Dependencies"}]},"/hibernate-maven-plugin/dependency-info.html":{"name":"Dependency Information","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-info.html","name":"Project Information"},{"uri":"/hibernate-maven-plugin/dependency-info.html","name":"Dependency Information"}]},"/hibernate-maven-plugin/distribution-management.html":{"name":"Distribution Management","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-info.html","name":"Project Information"},{"uri":"/hibernate-maven-plugin/distribution-management.html","name":"Distribution Management"}]},"/hibernate-maven-plugin/index.html":{"name":"Overview","childs":{"/hibernate-maven-plugin/index.html":"Overview","/hibernate-maven-plugin/configuration.html":"Configuration Examples","/hibernate-maven-plugin/export-mojo.html":"Parameter Documentation","/hibernate-maven-plugin/debugging.html":"Enable Debug-Output","/hibernate-maven-plugin/skip.html":"Skipping Execution","/hibernate-maven-plugin/force.html":"Force Exceution","/hibernate-maven-plugin/pitfalls.html":"Known Pitfalls (FAQ)","/hibernate-maven-plugin/project-info.html":"Project Information","/hibernate-maven-plugin/project-reports.html":"Project Reports"},"crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/index.html","name":"Overview"}]},"/hibernate-maven-plugin/license.html":{"name":"Licenses","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-info.html","name":"Project Information"},{"uri":"/hibernate-maven-plugin/license.html","name":"Licenses"}]},"/hibernate-maven-plugin/plugin-management.html":{"name":"Plugin Management","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-info.html","name":"Project Information"},{"uri":"/hibernate-maven-plugin/plugin-management.html","name":"Plugin Management"}]},"/hibernate-maven-plugin/plugins.html":{"name":"Plugins","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-info.html","name":"Project Information"},{"uri":"/hibernate-maven-plugin/plugins.html","name":"Plugins"}]},"/hibernate-maven-plugin/team-list.html":{"name":"Team","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-info.html","name":"Project Information"},{"uri":"/hibernate-maven-plugin/team-list.html","name":"Team"}]},"/hibernate-maven-plugin/source-repository.html":{"name":"Source Code Management","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-info.html","name":"Project Information"},{"uri":"/hibernate-maven-plugin/source-repository.html","name":"Source Code Management"}]},"/hibernate-maven-plugin/project-summary.html":{"name":"Summary","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-info.html","name":"Project Information"},{"uri":"/hibernate-maven-plugin/project-summary.html","name":"Summary"}]},"/hibernate-maven-plugin/project-info.html":{"name":"Project Information","childs":{"/hibernate-maven-plugin/integration.html":"CI Management","/hibernate-maven-plugin/dependencies.html":"Dependencies","/hibernate-maven-plugin/dependency-info.html":"Dependency Information","/hibernate-maven-plugin/distribution-management.html":"Distribution Management","/hibernate-maven-plugin/index.html":"About","/hibernate-maven-plugin/license.html":"Licenses","/hibernate-maven-plugin/plugin-management.html":"Plugin Management","/hibernate-maven-plugin/plugins.html":"Plugins","/hibernate-maven-plugin/team-list.html":"Team","/hibernate-maven-plugin/source-repository.html":"Source Code Management","/hibernate-maven-plugin/project-summary.html":"Summary"},"crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-info.html","name":"Project Information"}]},"/hibernate-maven-plugin/testapidocs/index.html":{"name":"Test JavaDocs","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-reports.html","name":"Project Reports"},{"uri":"/hibernate-maven-plugin/testapidocs/index.html","name":"Test JavaDocs"}]},"/hibernate-maven-plugin/apidocs/index.html":{"name":"JavaDocs","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-reports.html","name":"Project Reports"},{"uri":"/hibernate-maven-plugin/apidocs/index.html","name":"JavaDocs"}]},"/hibernate-maven-plugin/xref/index.html":{"name":"Source Xref","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-reports.html","name":"Project Reports"},{"uri":"/hibernate-maven-plugin/xref/index.html","name":"Source Xref"}]},"/hibernate-maven-plugin/xref-test/index.html":{"name":"Test Source Xref","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-reports.html","name":"Project Reports"},{"uri":"/hibernate-maven-plugin/xref-test/index.html","name":"Test Source Xref"}]},"/hibernate-maven-plugin/pmd.html":{"name":"PMD","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-reports.html","name":"Project Reports"},{"uri":"/hibernate-maven-plugin/pmd.html","name":"PMD"}]},"/hibernate-maven-plugin/plugin-info.html":{"name":"Plugin Documentation","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-reports.html","name":"Project Reports"},{"uri":"/hibernate-maven-plugin/plugin-info.html","name":"Plugin Documentation"}]},"/hibernate-maven-plugin/project-reports.html":{"name":"Project Reports","childs":{"/hibernate-maven-plugin/testapidocs/index.html":"Test JavaDocs","/hibernate-maven-plugin/apidocs/index.html":"JavaDocs","/hibernate-maven-plugin/xref/index.html":"Source Xref","/hibernate-maven-plugin/xref-test/index.html":"Test Source Xref","/hibernate-maven-plugin/pmd.html":"PMD","/hibernate-maven-plugin/plugin-info.html":"Plugin Documentation"},"crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/project-reports.html","name":"Project Reports"}]},"/hibernate-maven-plugin/configuration.html":{"name":"Configuration Examples","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/configuration.html","name":"Configuration Examples"}]},"/hibernate-maven-plugin/export-mojo.html":{"name":"Parameter Documentation","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/export-mojo.html","name":"Parameter Documentation"}]},"/hibernate-maven-plugin/debugging.html":{"name":"Enable Debug-Output","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/debugging.html","name":"Enable Debug-Output"}]},"/hibernate-maven-plugin/skip.html":{"name":"Skipping Execution","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/skip.html","name":"Skipping Execution"}]},"/hibernate-maven-plugin/force.html":{"name":"Force Exceution","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/force.html","name":"Force Exceution"}]},"/hibernate-maven-plugin/pitfalls.html":{"name":"Known Pitfalls (FAQ)","crumbs":[{"uri":"/projects.html","name":"Projects"}#set( = ","){"uri":"/hibernate-maven-plugin/index.html","name":"Hibernate 4 Maven Plugin"},{"uri":"/hibernate-maven-plugin/pitfalls.html","name":"Known Pitfalls (FAQ)"}]}}}'
- "
- >
- <head>
- <title>Hibernate 4 Maven Plugin — Configuration Examples</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <link rel="canonical" href="/hibernate-maven-plugin/configuration.html"/>
- </head>
- <body>
- <h2>Path</h2>
- <p>
- <ol>
- <li><a href="index.html">Hibernate 4 Maven Plugin</a></li><li><a href="configuration.html">Configuration Examples</a></li> </ol>
- </p>
- <hr />
- <article class="main" layout:fragment="maincontent">
-
-
-
-
-<h1>Configuration Examples</h1>
-
-<div class="section">
-<h2><a name="Configuration_through_a_hibernate.properties-File"></a>Configuration through a hibernate.properties-File</h2>
-
-<p>
- The most simple way to configure the plugin is, to put all the
- hibernate-configuration in a <b>hibernate.properties</b>-file on your
- classpath. Put the file in the <tt>resources</tt>-folder. Maven will put
- it in the <tt>class</tt>-folder of your webapp, where it will be picked up
- by this plugin as well as by Hibernate 4.
- </p>
-
-<p>
- Doing so, the only additionally configuration needed, to activat the plugin
- is the following entry in the <tt>plugins</tt>-section of your <tt>pom.xml</tt>:
- </p>
-
-<div>
-<pre class="prettyprint linenums lang-html">
-<plugin>
- <groupId>de.juplo</groupId>
- <artifactId>hibernate4-maven-plugin</artifactId>
- <version>1.1.1</version>
- <executions>
- <execution>
- <goals>
- <goal>export</goal>
- </goals>
- </execution>
- </executions>
-</plugin></pre></div>
-
-<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
- the database is droped and recreated by the plugin.
- Because of that,
- <b>
- you should never fire up this configuration on your production
- system, or your database might be erased!
- </b>
- </p>
-
-<p>
- A better approach is, to specify a different url for testing like in the
- following snippet:
- </p>
-
-<div>
-<pre class="prettyprint linenums lang-html">
-<plugin>
- <groupId>de.juplo</groupId>
- <artifactId>hibernate4-maven-plugin</artifactId>
- <version>1.1.1</version>
- <executions>
- <execution>
- <goals>
- <goal>export</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <url><![CDATA[jdbc:mysql://localhost/test-db]]></url>
- </configuration>
-</plugin></pre></div>
-
-<p>
- Configuration properties, that are set in the <tt>configuration</tt>-section
- of the plugin-configuration cannnot be overwritten elsewere (for details
- see <a href="#precedence">Configuration-Method-Precedence</a>).
- You never can overwrite them by accident when specifying a property on
- the commandline or in your <tt>settings.xml</tt>.
- </p>
- </div>
-<div class="section">
-<h2><a name="Configuration_through_maven-properties"></a>Configuration through maven-properties</h2>
-
-<p>
- Alternatively, it is possible, to configure the plugin via maven-properties.
- Each relevant configuration-option has a corresponding maven-property
- (for a full list see the <a href="./export-mojo.html">Documentation of the export-Mojo</a>).
- These are named after the
- <a class="externalLink" href="http://docs.jboss.org/hibernate/orm/4.1/manual/en-US/html_single/#configuration-hibernatejdbc">Hibernate JDBC Properties</a>:
- </p>
-
-<ul>
-
-<li><tt>hibernate.connection.driver_class</tt></li>
-
-<li><tt>hibernate.dialect</tt></li>
-
-<li><tt>hibernate.connection.url</tt></li>
-
-<li><tt>hibernate.connection.username</tt></li>
-
-<li><tt>hibernate.connection.password</tt></li>
- </ul>
-
-<p>
- So, instead of writing the hibernate-configuration in the properties-file,
- like above, you could put it in the <tt>properties</tt>-section of your
- <tt>pom.xml</tt>.
- </p>
-
-<p>
- Thogether with the plugin-definition from above, the following would
- be a complete configuration (again, the database-url was overwritten in
- the plugin-configuration, to be sure to have a separate database for
- testing):
- </p>
-
-<div>
-<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>
- <hibernate.connection.url><![CDATA[jdbc:hsqldb:res:org.my.path.production_db]]></hibernate.connection.url>
- <hibernate.connection.username>sa</hibernate.connection.username>
- <hibernate.connection.password></hibernate.connection.password>
-</properties>
-
-...
-
-<plugins>
-
- ...
-
- <plugin>
- <groupId>de.juplo</groupId>
- <artifactId>hibernate4-maven-plugin</artifactId>
- <version>1.1.1</version>
- <executions>
- <execution>
- <goals>
- <goal>export</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <url><![CDATA[jdbc:hsqldb:target/db/testdb;shutdown=true]]></url>
- </configuration>
- </plugin>
-
-<plugins></pre></div>
- </div>
-<div class="section">
-<h2><a name="Configuration_through_the_plugin-configuration"></a>Configuration through the plugin-configuration</h2>
-
-<p>
- A third way for configuring the plugin is the plugin-configuration.
- The relevant configuration-parameters are:
- </p>
-
-<ul>
-
-<li><tt>driverClassName</tt></li>
-
-<li><tt>hibernateDialect</tt></li>
-
-<li><tt>url</tt></li>
-
-<li><tt>username</tt></li>
-
-<li><tt>password</tt></li>
- </ul>
-
-<p>
- The equivalent of the configuration from the last section would look
- like this:
- </p>
-
-<div>
-<pre class="prettyprint linenums lang-html">
-<plugin>
- <groupId>de.juplo</groupId>
- <artifactId>hibernate4-maven-plugin</artifactId>
- <version>1.1.1</version>
- <executions>
- <execution>
- <goals>
- <goal>export</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <driverClassName>org.hsqldb.jdbcDriver</driverClassName>
- <hibernateDialect>org.hibernate.dialect.HSQLDialect</hibernateDialect>
- <url><![CDATA[jdbc:hsqldb:target/db/fotos;shutdown=true]]></url>
- <username>sa</username>
- <password></password>
- </configuration>
-</plugin></pre></div>
-
-<p>
- The parameter <b>hibernateProperties</b> (name of the hibernate-properties-file
- to use, defaults to <b>hibernate.properties</b>) can only be configured through
- this approach.
- </p>
-
-<p>
- For more explanations, see the
- <a href="./export-mojo.html">Documentation of the export-Mojo</a>.
- </p>
- </div>
-<div class="section" id="precedence">
-<h2 id="precedence">Configuration-Method-Precedence</h2>
-
-<p>
- The configuration is gathered in a fix order:
- </p>
-
-<ol style="list-style-type: decimal">
-
-<li><tt>hibernate.properties</tt></li>
-
-<li>maven-properties</li>
-
-<li>plugin-configuration</li>
- </ol>
-
-<p>
- If you are in doubt about where a configuration-value comes from, run
- maven with the <a href="./debugging.html">debug-output</a> enabled: <tt>mvn -X hibernate4:export</tt>
- and be aware, that maven-properties can be overwitten on the command-line,
- in your <tt>~/.m2/settings.xml</tt> and in a profile.
- </p>
-
-<p>
- The plugin-configuration comes last and overwrites everything else.
- That way, you can be sure, that a configuration-value, that is
- specified in the plugin-configuration will never be overwritten by any
- other configuration-method.
- </p>
-
-<p>
- If you need to overwrite plugin-configuration-values with
- maven-properties, you can use maven-properties in the plugin-configuration:
- </p>
-
-<div>
-<pre class="prettyprint linenums lang-html">
-<plugin>
- <groupId>de.juplo</groupId>
- <artifactId>hibernate4-maven-plugin</artifactId>
- <version>1.1.1</version>
- <executions>
- <execution>
- <goals>
- <goal>export</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <password>${my-password-property}</password>
- </configuration>
-</plugin></pre></div>
- </div>
-
- </article>
- <hr />
- <h2>Pages</h2>
- <p>
- <ul>
- <li><a href="integration.html">CI Management</a></li><li><a href="dependencies.html">Dependencies</a></li><li><a href="dependency-info.html">Dependency Information</a></li><li><a href="distribution-management.html">Distribution Management</a></li><li><a href="index.html">Overview</a></li><li><a href="license.html">Licenses</a></li><li><a href="plugin-management.html">Plugin Management</a></li><li><a href="plugins.html">Plugins</a></li><li><a href="team-list.html">Team</a></li><li><a href="source-repository.html">Source Code Management</a></li><li><a href="project-summary.html">Summary</a></li><li><a href="project-info.html">Project Information</a></li><li><a href="testapidocs/index.html">Test JavaDocs</a></li><li><a href="apidocs/index.html">JavaDocs</a></li><li><a href="xref/index.html">Source Xref</a></li><li><a href="xref-test/index.html">Test Source Xref</a></li><li><a href="pmd.html">PMD</a></li><li><a href="plugin-info.html">Plugin Documentation</a></li><li><a href="project-reports.html">Project Reports</a></li><li><a href="configuration.html">Configuration Examples</a></li><li><a href="export-mojo.html">Parameter Documentation</a></li><li><a href="debugging.html">Enable Debug-Output</a></li><li><a href="skip.html">Skipping Execution</a></li><li><a href="force.html">Force Exceution</a></li><li><a href="pitfalls.html">Known Pitfalls (FAQ)</a></li> </ul>
- </p>
- </body>
-</html>