From ac555cfa5057f1050a91d4c81fe4db287d93b0f3 Mon Sep 17 00:00:00 2001
From: Kai Moritz plugins-section of your pom.xml:
This would create the configured database.
If you want it to be droped beforehand, you have to add the goal
drop:
A correspondin goal for the command update is missing in this
@@ -80,17 +80,17 @@ params:
to use.
A simple example hibernate.properties-file may look like this:
But be aware, that using this configuration-approach the database-url, @@ -107,10 +107,10 @@ hibernate.connection.password= A better approach is, to specify a different url for testing like in the following snippet:
- -
Configuration properties, that are set in the configuration-section
@@ -243,10 +243,10 @@ hibernate.connection.password=
The equivalent of the configuration from the last section would look
like this:
The parameter hibernateProperties (name of the hibernate-properties-file @@ -318,10 +318,10 @@ hibernate.connection.password= If you need to overwrite plugin-configuration-values with maven-properties, you can use maven-properties in the plugin-configuration:
- -
(The compile might be necessary, because hibernate-maven-plugin
diff --git a/exampleSite/content/projects/hibernate-maven-plugin/2.1.1/force.html b/exampleSite/content/projects/hibernate-maven-plugin/2.1.1/force.html
index 16de51c1..c5279496 100644
--- a/exampleSite/content/projects/hibernate-maven-plugin/2.1.1/force.html
+++ b/exampleSite/content/projects/hibernate-maven-plugin/2.1.1/force.html
@@ -33,10 +33,10 @@ params:
you can force it to do so, if you set the parameter force to
true:
Or you may specify -Dhibernate.schema.force=true at the command line,
diff --git a/exampleSite/content/projects/hibernate-maven-plugin/2.1.1/pitfalls.html b/exampleSite/content/projects/hibernate-maven-plugin/2.1.1/pitfalls.html
index 0d0ac9cb..d1f0cfe2 100644
--- a/exampleSite/content/projects/hibernate-maven-plugin/2.1.1/pitfalls.html
+++ b/exampleSite/content/projects/hibernate-maven-plugin/2.1.1/pitfalls.html
@@ -34,14 +34,15 @@ params:
-Dhibernate.schema.execute=false or with the following
configuration:
But even when no database is to be created, hibernate always needs to know @@ -62,10 +63,10 @@ params: Since it will not be able to see the needed dependency, it will fail with an error-message like:
- -A quick workaround for this error would be, to delete the runtime-constraint @@ -106,10 +108,10 @@ params: A much cleaner way is, to (additionally) ad the dependency, to the plugin-definition:
- -This is also the best way, if you use a different jdbc-driver for @@ -166,10 +169,10 @@ params: For example, the dbunit-plugin can be configured to skip its excecution, if hibernate-maven-plugin was skipped like this:
- -
If one always uses mvn clean for cleanup, this will not happen.
Otherwise the recreation must be forced:
maven.test.skip is set to true. If you need it to be always
executed, you can configure that explicitly like this:
-
-
Background-information for this design-decission can be found on the extra
@@ -243,10 +250,10 @@ mvn hibernate:create -Dhibernate.schema.force=true
or set scanDependencies to none in the configuration
of the plugin like this:
Example configuration for two goals:
- -skip to false:
-
-
Or, if you want the plugin to be executed by default and to be skipped
if you say so, you can bind the value of the configuration-parameter
skip to a custom property. For example:
This way, the plugin would be skipped, if you set the property diff --git a/exampleSite/content/projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/_index.html b/exampleSite/content/projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/_index.html index 76d1cdd8..93123a5d 100644 --- a/exampleSite/content/projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/_index.html +++ b/exampleSite/content/projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/_index.html @@ -1,10 +1,12 @@ --- title: Hibernate Maven Plugin weight: 0 +outputs: + - html url: /projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/ layout: article params: - canonical: hibernate-maven-plugin/ + canonical: /hibernate-maven-plugin/ ---
plugins-section of your pom.xml:
-
-
This would create the configured database.
If you want it to be droped beforehand, you have to add the goal
drop:
A correspondin goal for the command update is missing in this
@@ -78,17 +80,17 @@ params:
to use.
A simple example hibernate.properties-file may look like this:
But be aware, that using this configuration-approach the database-url, @@ -105,10 +107,10 @@ hibernate.connection.password= A better approach is, to specify a different url for testing like in the following snippet:
- -
Configuration properties, that are set in the configuration-section
@@ -241,10 +243,10 @@ hibernate.connection.password=
The equivalent of the configuration from the last section would look
like this:
The parameter hibernateProperties (name of the hibernate-properties-file @@ -316,10 +318,10 @@ hibernate.connection.password= If you need to overwrite plugin-configuration-values with maven-properties, you can use maven-properties in the plugin-configuration:
- -
(The compile might be necessary, because hibernate-maven-plugin
diff --git a/exampleSite/content/projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/force.html b/exampleSite/content/projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/force.html
index 5527d559..de4246b9 100644
--- a/exampleSite/content/projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/force.html
+++ b/exampleSite/content/projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/force.html
@@ -1,10 +1,12 @@
---
title: Force Exceution
weight: 27
+outputs:
+ - html
url: /projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/force.html
layout: article
params:
- canonical: hibernate-maven-plugin/force.html
+ canonical: /hibernate-maven-plugin/force.html
---
force to
true:
-
-
Or you may specify -Dhibernate.schema.force=true at the command line,
diff --git a/exampleSite/content/projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/pitfalls.html b/exampleSite/content/projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/pitfalls.html
index 452115a7..7d768129 100644
--- a/exampleSite/content/projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/pitfalls.html
+++ b/exampleSite/content/projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/pitfalls.html
@@ -1,10 +1,12 @@
---
title: Known Pitfalls (FAQ)
weight: 28
+outputs:
+ - html
url: /projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/pitfalls.html
layout: article
params:
- canonical: hibernate-maven-plugin/pitfalls.html
+ canonical: /hibernate-maven-plugin/pitfalls.html
---
-Dhibernate.schema.execute=false or with the following
configuration:
-
-But even when no database is to be created, hibernate always needs to know @@ -60,10 +63,10 @@ params: Since it will not be able to see the needed dependency, it will fail with an error-message like:
- -A quick workaround for this error would be, to delete the runtime-constraint @@ -104,10 +108,10 @@ params: A much cleaner way is, to (additionally) ad the dependency, to the plugin-definition:
- -This is also the best way, if you use a different jdbc-driver for @@ -164,10 +169,10 @@ params: For example, the dbunit-plugin can be configured to skip its excecution, if hibernate-maven-plugin was skipped like this:
- -
If one always uses mvn clean for cleanup, this will not happen.
Otherwise the recreation must be forced:
maven.test.skip is set to true. If you need it to be always
executed, you can configure that explicitly like this:
-
-
Background-information for this design-decission can be found on the extra
@@ -241,10 +250,10 @@ mvn hibernate:create -Dhibernate.schema.force=true
or set scanDependencies to none in the configuration
of the plugin like this:
Example configuration for two goals:
- -skip to false:
-
-
Or, if you want the plugin to be executed by default and to be skipped
if you say so, you can bind the value of the configuration-parameter
skip to a custom property. For example:
This way, the plugin would be skipped, if you set the property diff --git a/exampleSite/static/projects/hibernate-maven-plugin/2.1.1/apidocs/allclasses-frame.html b/exampleSite/static/projects/hibernate-maven-plugin/2.1.1/apidocs/allclasses-frame.html index b2610211..c08af149 100644 --- a/exampleSite/static/projects/hibernate-maven-plugin/2.1.1/apidocs/allclasses-frame.html +++ b/exampleSite/static/projects/hibernate-maven-plugin/2.1.1/apidocs/allclasses-frame.html @@ -2,7 +2,7 @@
- +