From: Kai Moritz
Date: Tue, 28 Oct 2025 17:19:22 +0000 (+0100)
Subject: Regenerated the docs for version `1.0.2` of the `hibernate4-maven-plugin`
X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=5ee824767536fe4f1cb0076dbdc991f16cc99335;p=website
Regenerated the docs for version `1.0.2` of the `hibernate4-maven-plugin`
---
diff --git a/projects/hibernate-maven-plugin/1.0.2/ci-management.html b/projects/hibernate-maven-plugin/1.0.2/ci-management.html
new file mode 100644
index 0000000..ebc5407
--- /dev/null
+++ b/projects/hibernate-maven-plugin/1.0.2/ci-management.html
@@ -0,0 +1,621 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CI Management â Hibernate 4 Maven Plugin
+
+
+
+
+ CI Management
+ URI
+
+ site: /projects/hibernate-maven-plugin/1.0.2/ci-management.html
+ canonical: /hibernate-maven-plugin/ci-management.html
+ relative: ci-management.html
+
+ Path
+
+
+ Hibernate 4 Maven Plugin Project Information CI Management
+
+
+
+
+Notifiers
+Configuration for notifying developers/users when a build is unsuccessful, including user information and notification mode.
+
+
+Type
+Address
+Configuration
+
+mail
+kai@juplo.de
+-
+
+
+ Page Structure as JSON
+
+{
+ "_titles": {
+ "/projects/hibernate-maven-plugin/1.0.2/index.html": "Hibernate 4 Maven Plugin",
+ "/projects/hibernate-maven-plugin/1.0.2/ci-management.html": "CI Management",
+ "/projects/hibernate-maven-plugin/1.0.2/dependencies.html": "Dependencies",
+ "/projects/hibernate-maven-plugin/1.0.2/dependency-info.html": "Maven Coordinates",
+ "/projects/hibernate-maven-plugin/1.0.2/distribution-management.html": "Distribution Management",
+ "/projects/hibernate-maven-plugin/1.0.2/licenses.html": "Licenses",
+ "/projects/hibernate-maven-plugin/1.0.2/plugin-management.html": "Plugin Management",
+ "/projects/hibernate-maven-plugin/1.0.2/plugins.html": "Plugins",
+ "/projects/hibernate-maven-plugin/1.0.2/scm.html": "Source Code Management",
+ "/projects/hibernate-maven-plugin/1.0.2/summary.html": "Summary",
+ "/projects/hibernate-maven-plugin/1.0.2/team.html": "Team",
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html": "Project Information",
+ "/projects/hibernate-maven-plugin/1.0.2/apidocs/index.html": "JavaDocs",
+ "/projects/hibernate-maven-plugin/1.0.2/xref/index.html": "Source Xref",
+ "/projects/hibernate-maven-plugin/1.0.2/pmd.html": "PMD Report",
+ "/projects/hibernate-maven-plugin/1.0.2/cpd.html": "CPD Report",
+ "/projects/hibernate-maven-plugin/1.0.2/plugin-info.html": "Plugin Documentation",
+ "/projects/hibernate-maven-plugin/1.0.2/project-reports.html": "Project Reports",
+ "/projects/hibernate-maven-plugin/1.0.2/configuration.html": "Configuration Examples",
+ "/projects/hibernate-maven-plugin/1.0.2/export-mojo.html": "Parameter Documentation",
+ "/projects/hibernate-maven-plugin/1.0.2/debugging.html": "Enable Debug-Output",
+ "/projects/hibernate-maven-plugin/1.0.2/force.html": "Force Exceution",
+ "/projects/hibernate-maven-plugin/1.0.2/pitfalls.html": "Known Pitfalls (FAQ)"
+ },
+ "_childs": {
+ "/projects/hibernate-maven-plugin/1.0.2/index.html": [
+ "/projects/hibernate-maven-plugin/1.0.2/configuration.html",
+ "/projects/hibernate-maven-plugin/1.0.2/export-mojo.html",
+ "/projects/hibernate-maven-plugin/1.0.2/debugging.html",
+ "/projects/hibernate-maven-plugin/1.0.2/force.html",
+ "/projects/hibernate-maven-plugin/1.0.2/pitfalls.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-reports.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html": [
+ "/projects/hibernate-maven-plugin/1.0.2/ci-management.html",
+ "/projects/hibernate-maven-plugin/1.0.2/dependencies.html",
+ "/projects/hibernate-maven-plugin/1.0.2/dependency-info.html",
+ "/projects/hibernate-maven-plugin/1.0.2/distribution-management.html",
+ "/projects/hibernate-maven-plugin/1.0.2/licenses.html",
+ "/projects/hibernate-maven-plugin/1.0.2/plugin-management.html",
+ "/projects/hibernate-maven-plugin/1.0.2/plugins.html",
+ "/projects/hibernate-maven-plugin/1.0.2/scm.html",
+ "/projects/hibernate-maven-plugin/1.0.2/summary.html",
+ "/projects/hibernate-maven-plugin/1.0.2/team.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/project-reports.html": [
+ "/projects/hibernate-maven-plugin/1.0.2/apidocs/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/xref/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/pmd.html",
+ "/projects/hibernate-maven-plugin/1.0.2/cpd.html",
+ "/projects/hibernate-maven-plugin/1.0.2/plugin-info.html"
+ ]
+ },
+ "_crumbs": {
+ "/projects/hibernate-maven-plugin/1.0.2/index.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/ci-management.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html",
+ "/projects/hibernate-maven-plugin/1.0.2/ci-management.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/dependencies.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html",
+ "/projects/hibernate-maven-plugin/1.0.2/dependencies.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/dependency-info.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html",
+ "/projects/hibernate-maven-plugin/1.0.2/dependency-info.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/distribution-management.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html",
+ "/projects/hibernate-maven-plugin/1.0.2/distribution-management.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/licenses.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html",
+ "/projects/hibernate-maven-plugin/1.0.2/licenses.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/plugin-management.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html",
+ "/projects/hibernate-maven-plugin/1.0.2/plugin-management.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/plugins.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html",
+ "/projects/hibernate-maven-plugin/1.0.2/plugins.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/scm.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html",
+ "/projects/hibernate-maven-plugin/1.0.2/scm.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/summary.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html",
+ "/projects/hibernate-maven-plugin/1.0.2/summary.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/team.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html",
+ "/projects/hibernate-maven-plugin/1.0.2/team.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/apidocs/index.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-reports.html",
+ "/projects/hibernate-maven-plugin/1.0.2/apidocs/index.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/xref/index.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-reports.html",
+ "/projects/hibernate-maven-plugin/1.0.2/xref/index.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/pmd.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-reports.html",
+ "/projects/hibernate-maven-plugin/1.0.2/pmd.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/cpd.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-reports.html",
+ "/projects/hibernate-maven-plugin/1.0.2/cpd.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/plugin-info.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-reports.html",
+ "/projects/hibernate-maven-plugin/1.0.2/plugin-info.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/project-reports.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-reports.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/configuration.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/configuration.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/export-mojo.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/export-mojo.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/debugging.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/debugging.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/force.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/force.html"
+ ],
+ "/projects/hibernate-maven-plugin/1.0.2/pitfalls.html": [
+ "/index.html","/projects.html",
+ "/projects/hibernate-maven-plugin/1.0.2/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/pitfalls.html"
+ ]
+ },
+ "_canonical": {
+ "/projects/hibernate-maven-plugin/1.0.2/index.html": "/hibernate-maven-plugin/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/ci-management.html": "/hibernate-maven-plugin/ci-management.html",
+ "/projects/hibernate-maven-plugin/1.0.2/dependencies.html": "/hibernate-maven-plugin/dependencies.html",
+ "/projects/hibernate-maven-plugin/1.0.2/dependency-info.html": "/hibernate-maven-plugin/dependency-info.html",
+ "/projects/hibernate-maven-plugin/1.0.2/distribution-management.html": "/hibernate-maven-plugin/distribution-management.html",
+ "/projects/hibernate-maven-plugin/1.0.2/licenses.html": "/hibernate-maven-plugin/licenses.html",
+ "/projects/hibernate-maven-plugin/1.0.2/plugin-management.html": "/hibernate-maven-plugin/plugin-management.html",
+ "/projects/hibernate-maven-plugin/1.0.2/plugins.html": "/hibernate-maven-plugin/plugins.html",
+ "/projects/hibernate-maven-plugin/1.0.2/scm.html": "/hibernate-maven-plugin/scm.html",
+ "/projects/hibernate-maven-plugin/1.0.2/summary.html": "/hibernate-maven-plugin/summary.html",
+ "/projects/hibernate-maven-plugin/1.0.2/team.html": "/hibernate-maven-plugin/team.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-info.html": "/hibernate-maven-plugin/project-info.html",
+ "/projects/hibernate-maven-plugin/1.0.2/apidocs/index.html": "/hibernate-maven-plugin/apidocs/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/xref/index.html": "/hibernate-maven-plugin/xref/index.html",
+ "/projects/hibernate-maven-plugin/1.0.2/pmd.html": "/hibernate-maven-plugin/pmd.html",
+ "/projects/hibernate-maven-plugin/1.0.2/cpd.html": "/hibernate-maven-plugin/cpd.html",
+ "/projects/hibernate-maven-plugin/1.0.2/plugin-info.html": "/hibernate-maven-plugin/plugin-info.html",
+ "/projects/hibernate-maven-plugin/1.0.2/project-reports.html": "/hibernate-maven-plugin/project-reports.html",
+ "/projects/hibernate-maven-plugin/1.0.2/configuration.html": "/hibernate-maven-plugin/configuration.html",
+ "/projects/hibernate-maven-plugin/1.0.2/export-mojo.html": "/hibernate-maven-plugin/export-mojo.html",
+ "/projects/hibernate-maven-plugin/1.0.2/debugging.html": "/hibernate-maven-plugin/debugging.html",
+ "/projects/hibernate-maven-plugin/1.0.2/force.html": "/hibernate-maven-plugin/force.html",
+ "/projects/hibernate-maven-plugin/1.0.2/pitfalls.html": "/hibernate-maven-plugin/pitfalls.html"
+ }
+}
+
+ All Pages
+
+
+
+
+
diff --git a/projects/hibernate-maven-plugin/1.0.2/configuration.html b/projects/hibernate-maven-plugin/1.0.2/configuration.html
index 8706702..5b09571 100644
--- a/projects/hibernate-maven-plugin/1.0.2/configuration.html
+++ b/projects/hibernate-maven-plugin/1.0.2/configuration.html
@@ -1,67 +1,391 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- juplo - Hibernate 4 Maven Plugin - Configuration Examples
+ Hibernate 4 Maven Plugin
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - Configuration Examples
-
-
Configuration Examples
-
-
Configuration through a hibernate.properties-File
-
The most simple way to configure the plugin is, to put all the hibernate-configuration in a hibernate.properties -file on your classpath. Put the file in the resources -folder. Maven will put it in the class -folder of your webapp, where it will be picked up by this plugin as well as by Hibernate 4.
-
Doing so, the only additionally configuration needed, to activat the plugin is the following entry in the plugins -section of your pom.xml :
-
+
+
$shortTitle
+
URI
+
+ site: /projects/hibernate-maven-plugin/1.0.2/configuration.html
+ canonical: /hibernate-maven-plugin/configuration.html
+ relative: configuration.html
+
+
Path
+
+
+ Hibernate 4 Maven Plugin Configuration Examples
+
+
+
+
+Configuration Examples
+Configuration through a hibernate.properties-File
+The most simple way to configure the plugin is, to put all the hibernate-configuration in a hibernate.properties -file on your classpath. Put the file in the resources-folder. Maven will put it in the class-folder of your webapp, where it will be picked up by this plugin as well as by Hibernate 4.
+Doing so, the only additionally configuration needed, to activat the plugin is the following entry in the plugins-section of your pom.xml:
<plugin>
<groupId>de.juplo</groupId>
<artifactId>hibernate4-maven-plugin</artifactId>
- <version>${project.version}</version>
+ <version>1.0.2</version>
<executions>
<execution>
<goals>
@@ -69,14 +393,13 @@
</goals>
</execution>
</executions>
-</plugin>
-
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. So, you should never fire up this configuration on your production system, or your database might be erased!
+</plugin>
+
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. So, you should never fire up this configuration on your production system, or your database might be erased!
Hence, you should specify a different url for testing like in the following snippet:
-
<plugin>
<groupId>de.juplo</groupId>
<artifactId>hibernate4-maven-plugin</artifactId>
- <version>${project.version}</version>
+ <version>1.0.2</version>
<executions>
<execution>
<goals>
@@ -87,20 +410,18 @@
<configuration>
<url><![CDATA[jdbc:mysql://localhost/test-db]]></url>
</configuration>
-</plugin>
-
Configuration properties, that are set in the configuration -section of the plugin-configuration cannnot be overwritten elsewere (for details see Configuration-Method-Precedence ). You never can overwrite them by accident when specifying a property on the commandline or in your settings.xml .
-
-
Configuration through maven-properties
+</plugin>
+
Configuration properties, that are set in the configuration-section of the plugin-configuration cannnot be overwritten elsewere (for details see Configuration-Method-Precedence ). You never can overwrite them by accident when specifying a property on the commandline or in your settings.xml.
+Configuration through maven-properties
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 Documentation of the export-Mojo ). These are named after the Hibernate JDBC Properties :
-hibernate.connection.driver_class
-hibernate.dialect
-hibernate.connection.url
-hibernate.connection.username
-hibernate.connection.password
-So, instead of writing the hibernate-configuration in the properties-file, like above, you could put it in the properties -section of your pom.xml .
+hibernate.connection.driver_class
+hibernate.dialect
+hibernate.connection.url
+hibernate.connection.username
+hibernate.connection.password
+So, instead of writing the hibernate-configuration in the properties-file, like above, you could put it in the properties-section of your pom.xml.
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):
-
<properties>
<hibernate.connection.driver_class>org.hsqldb.jdbcDriver</hibernate.connection.driver_class>
<hibernate.dialect>org.hibernate.dialect.HSQLDialect</hibernate.dialect>
@@ -118,7 +439,7 @@
<plugin>
<groupId>de.juplo</groupId>
<artifactId>hibernate4-maven-plugin</artifactId>
- <version>${project.version}</version>
+ <version>1.0.2</version>
<executions>
<execution>
<goals>
@@ -131,22 +452,20 @@
</configuration>
</plugin>
-<plugins>
-
-
Configuration through the plugin-configuration
+<plugins>
+Configuration through the plugin-configuration
A third way for configuring the plugin is the plugin-configuration. The relevant configuration-parameters are:
-driverClassName
-hibernateDialect
-url
-username
-password
+driverClassName
+hibernateDialect
+url
+username
+password
The equivalent of the configuration from the last section would look like this:
-
<plugin>
<groupId>de.juplo</groupId>
<artifactId>hibernate4-maven-plugin</artifactId>
- <version>${project.version}</version>
+ <version>1.0.2</version>
<executions>
<execution>
<goals>
@@ -161,7 +480,7 @@
<username>sa</username>
<password></password>
</configuration>
-</plugin>
+</plugin>
There are some seldom used parameters, that can only be configured throug this method:
delimiter the delimiter used in the generated sql-script
@@ -170,22 +489,20 @@
outputFile name of the generated sql-script
target create database or generate sql-script or both
type create or drop the database or do both or nothing (just validate the annotation-configuration)
-For explanations, see the Documentation of the export-Mojo .
-
-
+
For explanations, see the Documentation of the export-Mojo .
+
The configuration is gathered in a fix order:
-
-hibernate.properties
+
+hibernate.properties
maven-properties
plugin-configuration
-If you are in doubt about where a configuration-value comes from, run maven with the debug-output enabled: mvn -X hibernate4:export and be aware, that maven-properties can be overwitten on the command-line, in your ~/.m2/settings.xml and in a profile.
+If you are in doubt about where a configuration-value comes from, run maven with the debug-output enabled: mvn -X hibernate4:export and be aware, that maven-properties can be overwitten on the command-line, in your ~/.m2/settings.xml and in a profile.
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.
If you realy need to overwrite plugin-configuration-values with maven-properties, you can use maven-properties in the plugin-configuration:
-
<plugin>
<groupId>de.juplo</groupId>
<artifactId>hibernate4-maven-plugin</artifactId>
- <version>${project.version}</version>
+ <version>1.0.2</version>
<executions>
<execution>
<goals>
@@ -196,76 +513,229 @@
<configuration>
<password>${my-password-property}</password>
</configuration>
-</plugin>
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - CPD Report
-
-
CPD Results
-
The following document contains the results of PMD's CPD 4.3.
-
-
Duplications
-
CPD found no problems in your source code.
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - Enable Debug-Output
-
-
Enabling Debug-Output
-
If you are new to hibernate4-maven-plugin , in many cases, the Configuration-Method-Precedence may be the source of configuration errors. To solve this problem, you should run maven with the debugging output enabled. For example, by executing:
-
-
mvn -X compile hibernate4:export
-
(The compile might be necessary, because hibernate4-maven-plugin has to scan the compiled classes for annotations!)
-
Unlike the majority of the maven-plugins, hibernate4-maven-plugin was designed to give a good many hints, when debugging is enabled. Because, if you do not know, what went wrong, you can't fix it!
-
But be warned: hibernate4-maven-plugin tends to be very chatty ;)
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - Dependencies
-
-
-
Project Dependencies
-
-
compile
+
+
Project Dependencies
+
URI
+
+ site: /projects/hibernate-maven-plugin/1.0.2/dependencies.html
+ canonical: /hibernate-maven-plugin/dependencies.html
+ relative: dependencies.html
+
+
Path
+
+
+ Hibernate 4 Maven Plugin Project Information Dependencies
+
+
+
+
+Project Dependencies
+compile
The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:
-
+
GroupId
ArtifactId
Version
Type
-License
+Licenses
com.pyx4j
maven-plugin-log4j
@@ -95,21 +417,19 @@
hibernate-core
4.2.3.Final
jar
-GNU Lesser General Public License
-
-
Project Transitive Dependencies
-
The following is a list of transitive dependencies for this project. Transitive dependencies are the dependencies of the project dependencies.
-
+Project Transitive Dependencies
+The following is a list of transitive dependencies for this project. Transitive dependencies are the dependencies of the project dependencies.
+compile
The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:
-
+
GroupId
ArtifactId
Version
Classifier
Type
-License
+Licenses
antlr
antlr
@@ -221,14 +541,14 @@
1.0.1.Final
-
jar
-license.txt
+null
org.javassist
javassist
3.15.0-GA
-
jar
-MPL 1.1 -LGPL 2.1 -Apache License 2.0
+MPL 1.1 LGPL 2.1 Apache License 2.0
org.jboss.logging
jboss-logging
@@ -242,7 +562,7 @@
1.0.1.Final
-
jar
-Common Development and Distribution License -GNU General Public License, Version 2 with the Classpath Exception
+Common Development and Distribution License GNU General Public License, Version 2 with the Classpath Exception
org.sonatype.aether
aether-api
@@ -305,17 +625,17 @@
2.3.0
-
jar
-The Apache Software License, Version 2.0 -Eclipse Public License, Version 1.0
+The Apache Software License, Version 2.0 Eclipse Public License, Version 1.0
org.sonatype.sisu
sisu-inject-plexus
2.3.0
-
jar
-Eclipse Public License, Version 1.0
-
-
Project Dependency Graph
-
-
-
Dependency Tree
+
+Dependency Tree
-de.juplo:hibernate4-maven-plugin:maven-plugin:1.0.2
-org.apache.maven:maven-core:jar:3.0.4 (compile)
-org.apache.maven:maven-model:jar:3.0.4 (compile)
-
+org.apache.maven:maven-model:jar:3.0.4 (compile)
-org.apache.maven:maven-settings:jar:3.0.4 (compile)
+org.apache.maven:maven-settings:jar:3.0.4 (compile)
-org.apache.maven:maven-settings-builder:jar:3.0.4 (compile)
+org.apache.maven:maven-settings-builder:jar:3.0.4 (compile)
+
Maven Settings Builder
Description: The effective settings builder, with inheritance and password decryption.
URL: http://maven.apache.org/ref/3.0.4//maven-settings-builder
-Project License: The Apache Software License, Version 2.0
-org.apache.maven:maven-repository-metadata:jar:3.0.4 (compile)
+org.apache.maven:maven-repository-metadata:jar:3.0.4 (compile)
+
Maven Repository Metadata Model
Description: Per-directory local and remote repository metadata.
URL: http://maven.apache.org/ref/3.0.4//maven-repository-metadata
-Project License: The Apache Software License, Version 2.0
-org.apache.maven:maven-artifact:jar:3.0.4 (compile)
+org.apache.maven:maven-artifact:jar:3.0.4 (compile)
+
Maven Artifact
@@ -405,18 +727,18 @@
number of other development tools for reporting or the build
process.
URL: http://maven.apache.org/ref/3.0.4//maven-artifact
-Project License: The Apache Software License, Version 2.0
-org.apache.maven:maven-model-builder:jar:3.0.4 (compile)
+org.apache.maven:maven-model-builder:jar:3.0.4 (compile)
+
Maven Model Builder
Description: The effective model builder, with inheritance, profile activation, interpolation, ...
URL: http://maven.apache.org/ref/3.0.4//maven-model-builder
-Project License: The Apache Software License, Version 2.0
-org.apache.maven:maven-aether-provider:jar:3.0.4 (compile)
+org.apache.maven:maven-aether-provider:jar:3.0.4 (compile)
+
Maven Aether Provider
@@ -424,103 +746,103 @@
Description: This module provides extensions to Aether for utilizing the Maven POM and Maven repository metadata for artifacts resolution
and download.
URL: http://maven.apache.org/ref/3.0.4//maven-aether-provider
-Project License: The Apache Software License, Version 2.0
+Project Licenses: The Apache Software License, Version 2.0
-org.sonatype.aether:aether-spi:jar:1.13.1 (compile)
-org.sonatype.sisu:sisu-inject-bean:jar:2.3.0 (compile)
-org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0 (compile)
-org.sonatype.sisu:sisu-guava:jar:0.9.9 (compile)
-org.sonatype.plexus:plexus-cipher:jar:1.4 (compile)
-antlr:antlr:jar:2.7.7 (compile)
-
+antlr:antlr:jar:2.7.7 (compile)
+
AntLR Parser Generator
@@ -577,54 +899,54 @@
and translators from grammatical descriptions containing
Java, C#, C++, or Python actions.
URL: http://www.antlr.org/
-Project License: BSD License
-org.jboss.logging:jboss-logging:jar:3.1.0.GA (compile)
+org.jboss.logging:jboss-logging:jar:3.1.0.GA (compile)
-dom4j:dom4j:jar:1.6.1 (compile)
+dom4j:dom4j:jar:1.6.1 (compile)
+
dom4j
Description: dom4j: the flexible XML framework for Java
URL: http://dom4j.org
-Project License: No license is defined for this project.
-org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.1.Final (compile)
-
+Project Licenses: No licenses are defined for this project.
+org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.1.Final (compile)
-org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final (compile)
+org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final (compile)
+
JPA 2.0 API
Description: Hibernate definition of the Java Persistence 2.0 (JSR 317) API.
URL: http://hibernate.org
-Project License:
-org.hibernate.common:hibernate-commons-annotations:jar:4.0.2.Final (compile)
+org.hibernate.common:hibernate-commons-annotations:jar:4.0.2.Final (compile)
-org.javassist:javassist:jar:3.15.0-GA (compile)
+org.javassist:javassist:jar:3.15.0-GA (compile)
-net.sf.scannotation:scannotation:jar:1.0.2 (compile)
+net.sf.scannotation:scannotation:jar:1.0.2 (compile)
+Project Licenses: Apache License V2.0
-javassist:javassist:jar:3.6.0.GA (compile)
-
+javassist:javassist:jar:3.6.0.GA (compile)
+
javassist
Description: POM was created from install:install-file
-Project License: No license is defined for this project.
-com.pyx4j:maven-plugin-log4j:jar:1.0.1 (compile)
-
+Project Licenses: No licenses are defined for this project.
+com.pyx4j:maven-plugin-log4j:jar:1.0.1 (compile)
+Project Licenses: The Apache Software License, Version 2.0
-log4j:log4j:jar:1.2.14 (compile)
-
+log4j:log4j:jar:1.2.14 (compile)
-
+Licenses
Apache Public License 2.0: Plexus Cipher: encryption/decryption Component, Plexus Security Dispatcher Component
-GNU LESSER GENERAL PUBLIC LICENSE: Hibernate Commons Annotations
-Unknown: dom4j, javassist
+Unnamed: JPA 2.0 API
Common Development and Distribution License: Java Transaction API
-LGPL 2.1: Javassist
-GNU General Public License, Version 2 with the Classpath Exception: Java Transaction API
-MPL 1.1: Javassist
-The Apache Software License, Version 2.0: Hibernate 4 Maven Plugin, Log4j, Maven Aether Provider, Maven Artifact, Maven Core, Maven Model, Maven Model Builder, Maven Plugin API, Maven Repository Metadata Model, Maven Settings, Maven Settings Builder, Plexus :: Component Annotations, Plexus Classworlds, Plexus Interpolation API, Sisu Guava - Core Library, Sisu Guice - Core Library, Sisu-Inject-Bean : Aggregate OSGi bundle, maven-plugin-log4j
+GNU LESSER GENERAL PUBLIC LICENSE: Hibernate Commons Annotations
GNU Lesser General Public License: A Hibernate Core Module
-GNU Lesser General Public License, version 2.1: JBoss Logging 3
Apache License V2.0: scannotation
+GNU Lesser General Public License, version 2.1: JBoss Logging 3
+Eclipse Public License, Version 1.0: Aether :: API, Aether :: Implementation, Aether :: SPI, Aether :: Utilities, Sisu-Inject-Bean : Aggregate OSGi bundle, Sisu-Inject-Plexus : Aggregate OSGi bundle
+Unknown: dom4j, javassist
BSD License: AntLR Parser Generator
Apache License 2.0: Javassist
-Eclipse Public License, Version 1.0: Aether :: API, Aether :: Implementation, Aether :: SPI, Aether :: Utilities, Sisu-Inject-Bean : Aggregate OSGi bundle, Sisu-Inject-Plexus : Aggregate OSGi bundle
-
-
Dependency File Details
-
+LGPL 2.1: Javassist
+GNU General Public License, Version 2 with the Classpath Exception: Java Transaction API
+MPL 1.1: Javassist
+The Apache Software License, Version 2.0: Hibernate 4 Maven Plugin, Log4j, Maven Aether Provider, Maven Artifact, Maven Core, Maven Model, Maven Model Builder, Maven Plugin API, Maven Repository Metadata Model, Maven Settings, Maven Settings Builder, Plexus :: Component Annotations, Plexus Classworlds, Plexus Interpolation API, Sisu Guava - Core Library, Sisu Guice - Core Library, Sisu-Inject-Bean : Aggregate OSGi bundle, maven-plugin-log4j
+Dependency File Details
+
Filename
Size
Entries
Classes
Packages
-JDK Rev
-Debug
-
-antlr-2.7.7.jar
-434.85 kB
-239
-224
-12
-1.2
-debug
-
-maven-plugin-log4j-1.0.1.jar
-3.64 kB
-12
-1
-1
-1.4
-debug
-
-dom4j-1.6.1.jar
-306.54 kB
-208
-190
-14
-1.3
-debug
-
-javassist-3.6.0.GA.jar
-529.53 kB
-323
-305
-16
-1.2
-debug
-
-log4j-1.2.14.jar
-358.83 kB
-288
-256
-19
-1.1
-debug
-
-scannotation-1.0.2.jar
-18.04 kB
-23
-13
-2
-1.5
-debug
-
-maven-aether-provider-3.0.4.jar
-55.17 kB
-40
-23
-1
-1.5
-debug
-
-maven-artifact-3.0.4.jar
-50.87 kB
-57
-32
-11
-1.5
-debug
-
-maven-core-3.0.4.jar
-545.94 kB
-428
-350
-43
-1.5
-debug
-
-maven-model-3.0.4.jar
-159.72 kB
-67
-50
-3
-1.5
-debug
-
-maven-model-builder-3.0.4.jar
-147.06 kB
-142
-109
-16
-1.5
-debug
-
-maven-plugin-api-3.0.4.jar
-48.16 kB
-46
-25
-6
-1.5
-debug
-
-maven-repository-metadata-3.0.4.jar
-29.37 kB
-25
-7
-2
-1.5
-debug
-
-maven-settings-3.0.4.jar
-45.57 kB
-33
-17
-2
-1.5
-debug
-
-maven-settings-builder-3.0.4.jar
-40.41 kB
-53
-32
-5
-1.5
-debug
-
-plexus-classworlds-2.4.jar
-45.96 kB
-52
-37
-5
-1.4
-debug
-
-plexus-component-annotations-1.5.5.jar
-4.11 kB
-15
-3
-1
-1.5
-release
-
-plexus-interpolation-1.14.jar
-59.64 kB
-60
-44
-6
-1.4
-debug
-
-hibernate-core-4.2.3.Final.jar
-4.41 MB
-3,190
-2,981
-170
-1.6
-debug
-
-hibernate-commons-annotations-4.0.2.Final.jar
-79.91 kB
-82
-64
-7
-1.6
-debug
-
-hibernate-jpa-2.0-api-1.0.1.Final.jar
-100.25 kB
-190
-176
-4
-1.5
-debug
-
-javassist-3.15.0-GA.jar
-633.06 kB
-391
-367
-17
-1.4
-debug
-
-jboss-logging-3.1.0.GA.jar
-59.34 kB
-55
-43
-1
-1.6
-debug
-
-jboss-transaction-api_1.1_spec-1.0.1.Final.jar
-24.62 kB
-31
-18
-2
-1.6
-debug
-
-aether-api-1.13.1.jar
-87.56 kB
-116
-96
-11
-1.5
-debug
-
-aether-impl-1.13.1.jar
-127.10 kB
-87
-73
-2
-1.5
-debug
-
-aether-spi-1.13.1.jar
-15.07 kB
-33
-17
-5
-1.5
-debug
-
-aether-util-1.13.1.jar
-126.98 kB
-116
-92
-14
-1.5
-debug
-
-plexus-cipher-1.4.jar
-13.18 kB
-20
-6
-1
-1.4
-debug
-
-plexus-sec-dispatcher-1.3.jar
-27.89 kB
-31
-13
-3
-1.4
-debug
-
-sisu-guava-0.9.9.jar
-1.44 MB
-1,183
-1,163
-10
-1.5
-debug
-
-sisu-guice-3.1.0-no_aop.jar
-349.05 kB
-310
-295
-8
-1.5
-debug
-
-sisu-inject-bean-2.3.0.jar
-282.29 kB
-256
-224
-15
-1.5
-debug
-
-sisu-inject-plexus-2.3.0.jar
-199.64 kB
-207
-163
-27
-1.5
-debug
+Java Version
+Debug Information
+
+antlr-2.7.7.jar
+445.3 kB
+239
+224
+12
+1.2
+Yes
+
+maven-plugin-log4j-1.0.1.jar
+3.7 kB
+12
+1
+1
+1.4
+Yes
+
+dom4j-1.6.1.jar
+313.9 kB
+208
+190
+14
+1.3
+Yes
+
+javassist-3.6.0.GA.jar
+542.2 kB
+323
+305
+16
+1.2
+Yes
+
+log4j-1.2.14.jar
+367.4 kB
+288
+256
+19
+1.1
+Yes
+
+scannotation-1.0.2.jar
+18.5 kB
+23
+13
+2
+1.5
+Yes
+
+maven-aether-provider-3.0.4.jar
+56.5 kB
+40
+23
+1
+1.5
+Yes
+
+maven-artifact-3.0.4.jar
+52.1 kB
+57
+32
+11
+1.5
+Yes
+
+maven-core-3.0.4.jar
+559 kB
+428
+350
+43
+1.5
+Yes
+
+maven-model-3.0.4.jar
+163.6 kB
+67
+50
+3
+1.5
+Yes
+
+maven-model-builder-3.0.4.jar
+150.6 kB
+142
+109
+16
+1.5
+Yes
+
+maven-plugin-api-3.0.4.jar
+49.3 kB
+46
+25
+6
+1.5
+Yes
+
+maven-repository-metadata-3.0.4.jar
+30.1 kB
+25
+7
+2
+1.5
+Yes
+
+maven-settings-3.0.4.jar
+46.7 kB
+33
+17
+2
+1.5
+Yes
+
+maven-settings-builder-3.0.4.jar
+41.4 kB
+53
+32
+5
+1.5
+Yes
+
+plexus-classworlds-2.4.jar
+47.1 kB
+52
+37
+5
+1.4
+Yes
+
+plexus-component-annotations-1.5.5.jar
+4.2 kB
+15
+3
+1
+1.5
+No
+
+plexus-interpolation-1.14.jar
+61.1 kB
+60
+44
+6
+1.4
+Yes
+
+hibernate-core-4.2.3.Final.jar
+4.6 MB
+3190
+2981
+170
+1.6
+Yes
+
+hibernate-commons-annotations-4.0.2.Final.jar
+81.8 kB
+82
+64
+7
+1.6
+Yes
+
+hibernate-jpa-2.0-api-1.0.1.Final.jar
+102.7 kB
+190
+176
+4
+1.5
+Yes
+
+javassist-3.15.0-GA.jar
+648.3 kB
+391
+367
+17
+1.4
+Yes
+
+jboss-logging-3.1.0.GA.jar
+60.8 kB
+55
+43
+1
+1.6
+Yes
+
+jboss-transaction-api_1.1_spec-1.0.1.Final.jar
+25.2 kB
+31
+18
+2
+1.6
+Yes
+
+aether-api-1.13.1.jar
+89.7 kB
+116
+96
+11
+1.5
+Yes
+
+aether-impl-1.13.1.jar
+130.1 kB
+87
+73
+2
+1.5
+Yes
+
+aether-spi-1.13.1.jar
+15.4 kB
+33
+17
+5
+1.5
+Yes
+
+aether-util-1.13.1.jar
+130 kB
+116
+92
+14
+1.5
+Yes
+
+plexus-cipher-1.4.jar
+13.5 kB
+20
+6
+1
+1.4
+Yes
+
+plexus-sec-dispatcher-1.3.jar
+28.6 kB
+31
+13
+3
+1.4
+Yes
+
+sisu-guava-0.9.9.jar
+1.5 MB
+1183
+1163
+10
+1.5
+Yes
+
+sisu-guice-3.1.0-no_aop.jar
+357.4 kB
+310
+295
+8
+1.5
+Yes
+
+sisu-inject-bean-2.3.0.jar
+289.1 kB
+256
+224
+15
+1.5
+Yes
+
+sisu-inject-plexus-2.3.0.jar
+204.4 kB
+207
+163
+27
+1.5
+Yes
Total
Size
Entries
Classes
Packages
-JDK Rev
-Debug
-
-34
-10.74 MB
-8,409
-7,509
-462
-1.6
-33
-
-compile: 34
-compile: 10.74 MB
-compile: 8,409
-compile: 7,509
-compile: 462
--
-compile: 33
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - Dependency Information
-
-
Dependency Information
-
-
Apache Maven
-
-
<dependency>
+
+ Maven Coordinates
+ URI
+
+ site: /projects/hibernate-maven-plugin/1.0.2/dependency-info.html
+ canonical: /hibernate-maven-plugin/dependency-info.html
+ relative: dependency-info.html
+
+
Path
+
+
+ Hibernate 4 Maven Plugin Project Information Maven Coordinates
+
+
+
+
+Maven Coordinates
+Apache Maven
+<plugin>
<groupId>de.juplo</groupId>
<artifactId>hibernate4-maven-plugin</artifactId>
<version>1.0.2</version>
- <type>maven-plugin</type>
-</dependency>
-
-
Apache Buildr
-
-
'de.juplo:hibernate4-maven-plugin:maven-plugin:1.0.2'
-
-
Apache Ant
-
-
<dependency org="de.juplo" name="hibernate4-maven-plugin" rev="1.0.2">
- <artifact name="hibernate4-maven-plugin" type="maven-plugin" />
-</dependency>
-
-
Groovy Grape
-
-
@Grapes(
-@Grab(group='de.juplo', module='hibernate4-maven-plugin', version='1.0.2')
-)
-
-
Grails
-
-
compile 'de.juplo:hibernate4-maven-plugin:1.0.2'
-
-
Leiningen
-
-
[de.juplo/hibernate4-maven-plugin "1.0.2"]
-
-
SBT
-
-
libraryDependencies += "de.juplo" %% "hibernate4-maven-plugin" % "1.0.2"
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - Distribution Management
-
-
Overview
-
The following is the distribution management information used by this project.
-
-
-
-
Site - www.juplo.de
-
scp://juplo.de/var/www/juplo/hibernate4-maven-plugin-1.0.2
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - Force Exceution
-
-
Force execution
+
+
$shortTitle
+
URI
+
+ site: /projects/hibernate-maven-plugin/1.0.2/force.html
+ canonical: /hibernate-maven-plugin/force.html
+ relative: force.html
+
+
Path
+
+
+ Hibernate 4 Maven Plugin Force Exceution
+
+
+
+
+Force execution
The hibernate4-maven-plugin computes MD5-sums for all found annotated classes and stores them together with the generated schema. If no classes were changed or added and the dialect wasn't changed too, it automatically skips the configured schema-export, to speed up the development cycle.
-The plugin signals, that the execution was skipped by setting the maven property $hibernate.export.skipped to true . This may be helpful, because other plugins like dbunit-plugin may fail , when the execution is skipped.
-If you need the hibernate4-maven-plugin to never skip automatically execution, you can force it to do so, if you set the parameter force to true :
-
+
The plugin signals, that the execution was skipped by setting the maven property $hibernate.export.skipped to true. This may be helpful, because other plugins like dbunit-plugin may fail , when the execution is skipped.
+
If you need the hibernate4-maven-plugin to never skip automatically execution, you can force it to do so, if you set the parameter force to true:
<plugin>
<groupId>de.juplo</groupId>
<artifactId>hibernate4-maven-plugin</artifactId>
- <version>${project.version}</version>
+ <version>1.0.2</version>
<configuration>
<force>true</force>
</configuration>
-</plugin>
-Or you may specify -Dhibernate.export.force=true at the command line, if you want to force hibernate4-maven-plugin only once.
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin -
-
-
A simple Plugin for generating a Database-Schema from Hibernate 4 Mapping-Annotations.
+
+
$shortTitle
+
URI
+
+ site: /projects/hibernate-maven-plugin/1.0.2/index.html
+ canonical: /hibernate-maven-plugin/index.html
+ relative: index.html
+
+
Path
+
+
+ Hibernate 4 Maven Plugin
+
+
+
+
+A simple Plugin for generating a Database-Schema from Hibernate 4 Mapping-Annotations.
hibernate4-maven-plugin is a plugin for generating a database-schema from your Hibernate-4-Mappings and create or update your database accordingly.
The plugin was designed with three main goals in mind:
It should be easy to use.
It should be maximal unlikely, to erase a producation-database by accident.
It should not slow down the development cycle.
-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 debugging output with the mvn -X ... .
+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 debugging output with the mvn -X ....
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.
Last but not least, in order to not slow down the development cycle, the hibernate4-maven-plugin only executes the schema-export, if the mapping or the dialect changes (or if you force it to do so).
-For more information about the inspiration to write this tiny plugin, read our blog-article about the hibernate4-maven-plugin .
-
-
-
Releases
+
See hibernate4:export and Plugin Documentation for the full autogenerated documentation. These are mostly configuration-options of the Hibernate-Tools SchemaExport and SchemaUpdate, that do the work in the background.
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - Issue Tracking
-
-
Issue Tracking
+
+
$shortTitle
+
URI
+
+ site: /projects/hibernate-maven-plugin/1.0.2/issue-tracking.html
+ canonical: /hibernate-maven-plugin/issue-tracking.html
+ relative: issue-tracking.html
+
+
Path
+
+
+
+
+
+
+
+Issue Tracking
There is no bug-tracking system set up for this project!
-Please send your bug-reports, questions or feature-requests directly to the developer.
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - Mailing Lists
-
-
Mailing Lists
+
+
$shortTitle
+
URI
+
+ site: /projects/hibernate-maven-plugin/1.0.2/mail-lists.html
+ canonical: /hibernate-maven-plugin/mail-lists.html
+ relative: mail-lists.html
+
+
Path
+
+
+
+
+
+
+
+Mailing Lists
There are no mailinglists defined for this project!
-Please send your bug-reports, questions or feature-requests directly to the developer.
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - Known Pitfalls (FAQ)
-
-
Known Pitfalls
-
-
hibernate4-maven-plugin always needs a database-connection
-
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 use the NONE- or the SCRIPT-target. This can be achieved with the commandline-parameter -Dhibernate.export.target=SCRIPT or with the following configuration:
-
+
+
$shortTitle
+
URI
+
+ site: /projects/hibernate-maven-plugin/1.0.2/pitfalls.html
+ canonical: /hibernate-maven-plugin/pitfalls.html
+ relative: pitfalls.html
+
+
Path
+
+
+ Hibernate 4 Maven Plugin Known Pitfalls (FAQ)
+
+
+
+
+Known Pitfalls
+hibernate4-maven-plugin always needs a database-connection
+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 use the NONE- or the SCRIPT-target. This can be achieved with the commandline-parameter -Dhibernate.export.target=SCRIPT or with the following configuration:
<configuration>
<target>SCRIPT</target>
-</configuration>
-
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!
-
-
Dependency for driver-class XYZ is missing
-
One regular problem is the scope of the jdbc-driver-dependency. It is very unlikely, that this dependency is needed at compile-time. So a tidy maven-developer would usually scope it for runtime .
-
But this will break the execution of the hibernate4-maven-plugin . Since it will not be able to see the needed dependency, it will fail with an error-message like:
-
+</configuration>
+
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!
+Dependency for driver-class XYZ is missing
+One regular problem is the scope of the jdbc-driver-dependency. It is very unlikely, that this dependency is needed at compile-time. So a tidy maven-developer would usually scope it for runtime.
+But this will break the execution of the hibernate4-maven-plugin. Since it will not be able to see the needed dependency, it will fail with an error-message like:
[INFO] Gathered hibernate-configuration (turn on debugging for details):
[INFO] hibernate.connection.username = sa
[INFO] hibernate.connection.password =
@@ -83,14 +405,13 @@
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Nov 29 11:31:14 CET 2012
[INFO] Final Memory: 32M/342M
-[INFO] ------------------------------------------------------------------------
+[INFO] ------------------------------------------------------------------------
A quick workaround for this error would be, to delete the runtime-constraint for the jdbc-driver-dependency.
A much cleaner way is, to (additionally) ad the dependency, to the plugin-definition:
-
<plugin>
<groupId>de.juplo</groupId>
<artifactId>hibernate4-maven-plugin</artifactId>
- <version>${project.version}</version>
+ <version>1.0.2</version>
<executions>
<execution>
<goals>
@@ -105,96 +426,245 @@
<version>2.2.8</version>
</dependency>
</dependencies>
-</plugin>
-
This is also the best way, if you use a different jdbc-driver for testing, than in production. Because otherwise, this dependency will unnecessarily bloat the runtime-dependencies of your project.
-
-
DBUnit fails after execution of hibernate4 was skipped because nothing has changed
-
If hibernate4-maven-plugin skips its excecution, this may lead to errors in other plugins. For example, when importing sample-data in the automatically created database with the help of the dbunit-plugin , the CLEAN_INSERT -operation may fail because of foreign-key-constraints, if the database was not recreated, because the hibernate4-maven-plugin has skipped its excecution.
+</plugin>
+
This is also the best way, if you use a different jdbc-driver for testing, than in production. Because otherwise, this dependency will unnecessarily bloat the runtime-dependencies of your project.
+DBUnit fails after execution of hibernate4 was skipped because nothing has changed
+If hibernate4-maven-plugin skips its excecution, this may lead to errors in other plugins. For example, when importing sample-data in the automatically created database with the help of the dbunit-plugin , the CLEAN_INSERT-operation may fail because of foreign-key-constraints, if the database was not recreated, because the hibernate4-maven-plugin has skipped its excecution.
A quick fix to this problem is, to force hibernate4-maven-plugin to export the schema every time it is running. But to recreate the database on every testrun may noticeable slow down your development cycle, if you have to wait for slow IO.
-To circumvent this problem, hibernate4-maven-plugin signals a skipped excecution by setting the maven property $hibernate.export.skipped to true . You can configure other plugins to react on this signal. For example, the dbunit-plugin can be configured to skip its excecution, if hibernate4-maven-plugin was skipped like this:
-
+
To circumvent this problem, hibernate4-maven-plugin signals a skipped excecution by setting the maven property $hibernate.export.skipped to true. You can configure other plugins to react on this signal. For example, the dbunit-plugin can be configured to skip its excecution, if hibernate4-maven-plugin was skipped like this:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>dbunit-maven-plugin</artifactId>
<configuration>
<skip>${hibernate.export.skipped}</skip>
</configuration>
-</plugin>
-
-
The database will not be recreated after a manual drop/clean
+</plugin>
+The database will not be recreated after a manual drop/clean
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 the database needs to be recreated. This happens, because the plugin will not recreate the database if neither the configuration nor the annotated classes have changed, because an unnecessary drop-create-cycle might take a long time. The plugin will report that like this: ------------- [INFO] No modified annotated classes found and dialect unchanged. [INFO] Skipping schema generation! [------------
-If one always uses mvn clen for cleanup, this will not happen. Otherwise the recreation must be forced :
-
-
mvn hibernate4:export -Dhibernate.export.force=true
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - Plugin Documentation
-
-
Plugin Documentation
+
+
Plugin Documentation
+
URI
+
+ site: /projects/hibernate-maven-plugin/1.0.2/plugin-info.html
+ canonical: /hibernate-maven-plugin/plugin-info.html
+ relative: plugin-info.html
+
+
Path
+
+
+ Hibernate 4 Maven Plugin Project Reports Plugin Documentation
+
+
+
+
+Plugin Documentation
Goals available for this plugin:
-
+
Goal
Description
-hibernate4:export
+hibernate4:export
Goal which extracts the hibernate-mapping-configuration and exports
an according SQL-database-schema.
-hibernate4:help
+hibernate4:help
Display help information on hibernate4-maven-plugin.
Call mvn hibernate4:help -Ddetail=true
--Dgoal=<goal-name> to display parameter details.
-
-
System Requirements
+-Dgoal=<goal-name> to display parameter details.
+System Requirements
The following specifies the minimum requirements to run this Maven plugin:
-
+
-Maven
+Maven
2.0.6
-JDK
+JDK
1.6
-Memory
+Memory
No minimum requirement.
-Disk Space
-No minimum requirement.
-
-
Usage
+
Disk Space
+
No minimum requirement.
+Usage
You should specify the version in your project's plugin configuration:
-
-
<project>
- ...
- <build>
- <!-- To define the plugin version in your parent POM -->
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>de.juplo</groupId>
- <artifactId>hibernate4-maven-plugin</artifactId>
- <version>1.0.2</version>
- </plugin>
- ...
- </plugins>
- </pluginManagement>
- <!-- To use the plugin goals in your POM or parent POM -->
- <plugins>
- <plugin>
- <groupId>de.juplo</groupId>
- <artifactId>hibernate4-maven-plugin</artifactId>
- <version>1.0.2</version>
- </plugin>
- ...
- </plugins>
- </build>
- ...
-</project>
-
-For more information, see "Guide to Configuring Plug-ins"
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - Plugin Management
-
-
Project Plugin Management
-
+
+ Project Plugin Management
+ URI
+
+ site: /projects/hibernate-maven-plugin/1.0.2/plugin-management.html
+ canonical: /hibernate-maven-plugin/plugin-management.html
+ relative: plugin-management.html
+
+ Path
+
+
+ Hibernate 4 Maven Plugin Project Information Plugin Management
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - Project Plugins
-
-
Project Build Plugins
-
+
+ Project Plugins
+ URI
+
+ site: /projects/hibernate-maven-plugin/1.0.2/plugins.html
+ canonical: /hibernate-maven-plugin/plugins.html
+ relative: plugins.html
+
+ Path
+
+
+ Hibernate 4 Maven Plugin Project Information Plugins
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - PMD Report
-
-
PMD Results
-
The following document contains the results of PMD 4.3.
-
-
Files
-
PMD found no problems in your source code.
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - Project Information
-
-
Project Information
-
This document provides an overview of the various documents and links that are part of this project's general information. All of this content is automatically generated by Maven on behalf of the project.
-
-
Overview
-
+
+ Project Information
+ URI
+
+ site: /projects/hibernate-maven-plugin/1.0.2/project-info.html
+ canonical: /hibernate-maven-plugin/project-info.html
+ relative: project-info.html
+
+ Path
+
+
+ Hibernate 4 Maven Plugin Project Information
+
+
+
+
+Project Information
+This document provides an overview of the various documents and links that are part of this project's general information. All of this content is automatically generated by Maven on behalf of the project.
+Overview
+
Document
Description
-About
-Plugin for generating a database-schema from Hibernate-4-Mapping-Annotations
+CI Management
+This document lists the continuous integration management system of this project for building and testing code on a frequent, regular basis.
-Plugin Management
-This document lists the plugins that are defined through pluginManagement.
+Dependencies
+This document lists the project's dependencies and provides information on each dependency.
+Maven Coordinates
+This document describes how to include this project as a dependency using various dependency management tools.
+
Distribution Management
This document provides informations on the distribution management of this project.
-
-Dependency Information
-This document describes how to to include this project as a dependency using various dependency management tools.
-Source Repository
-This is a link to the online source repository that can be viewed via a web browser.
+About
+Plugin for generating a database-schema from Hibernate-4-Mapping-Annotations
-Mailing Lists
-This document provides subscription and archive information for this project's mailing lists.
+Licenses
+This document lists the project license(s).
-Issue Tracking
-This is a link to the issue management system for this project. Issues (bugs, features, change requests) can be created and queried using this link.
+Plugin Management
+This document lists the plugins that are defined through pluginManagement.
-Continuous Integration
-This is a link to the definitions of all continuous integration processes that builds and tests code on a frequent, regular basis.
-
-Project Plugins
+Plugins
This document lists the build plugins and the report plugins used by this project.
-
-Project License
-This is a link to the definitions of project licenses.
-Project Team
-This document provides information on the members of this project. These are the individuals who have contributed to the project in one form or another.
+Source Code Management
+This document lists ways to access the online source repository.
-Project Summary
+Summary
This document lists other related information of this project
-Dependencies
-This document lists the project's dependencies and provides information on each dependency.
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- Hibernate 4 Maven Plugin - Project Reports
-
-
Generated Reports
-
This document provides an overview of the various reports that are automatically generated by Maven . Each report is briefly described below.
-
-
Overview
-
+
+ Generated Reports
+ URI
+
+ site: /projects/hibernate-maven-plugin/1.0.2/project-reports.html
+ canonical: /hibernate-maven-plugin/project-reports.html
+ relative: project-reports.html
+
+ Path
+
+
+ Hibernate 4 Maven Plugin Project Reports
+
+
+
+
+Generated Reports
+This document provides an overview of the various reports that are automatically generated by Maven . Each report is briefly described below.
+Overview
+
Document
Description
@@ -74,93 +399,229 @@
Duplicate code detection.
Plugin Documentation
-This report provides goals and parameters documentation of a plugin.
-
-
-
-
-
-