</plugin>
---------------
- There are some seldom used parameters, that can only be configured throug
- this method:
+ The parameter <<hibernateProperties>> (name of the hibernate-properties-file
+ to use, defaults to <<hibernate.properties>>) can only be configured through
+ this approach.
- * <<delimiter>> the delimiter used in the generated sql-script
-
- * <<format>> wether the generated sql-script is formatted, or not
-
- * <<hibernateProperties>> name of the hibernate-properties-file
-
- * <<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
+ For more explanations, see the
{{{./export-mojo.html} Documentation of the export-Mojo}}.
{Configuration-Method-Precedence}
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
+ This can be achieved with the command-line parameter
<<<-Dhibernate.export.target=SCRIPT>>> or with the following configuration:
------------
[INFO] Skipping schema generation!
-------------
- If one always uses <<<mvn clen>>> for cleanup, this will not happen.
+ If one always uses <<<mvn clean>>> for cleanup, this will not happen.
Otherwise the recreation must be {{{./force.html}forced}}:
-------------
mvn hibernate4:export -Dhibernate.export.force=true
-------------
-* The hibernate4:export goal is executed, even if <<<maven.test.skip>>> is
- <<<true>>>
+* The hibernate4:export goal is not executed, when tests are skipped
- Up to version 1.0.2 the hibernate4-maven-plugin automatically skipped
- its execution, when <<<maven.test.skip>>> was set to <<<true>>>. Starting
- with version 1.0.3 this behaviour was changed. The plugin now only skips
- its execution, when explicitliy told so via the configuration-parameter
- <<<skip>>> or via the property <<<hibernate.export.skip>>>.
-
- This change was made, because in some use-cases it is necessary, that the
- database-schema is always build and/or exported, even if the tests are
- skipped, which was not possible with the old behaviour.
-
- If you need/like the old behaviour, you can turn it on in your configuration:
+ The hibernate4-maven-plugin automatically skips its execution, when
+ <<<maven.test.skip>>> is set to <<<true>>>. If you need it to be always
+ executed, you can configure that explicitly like this:
------------
<plugin>
<artifactId>hibernate4-maven-plugin</artifactId>
...
<configuration>
- <skip>${maven.test.skip}</skip>
+ <skip>false</skip>
</configuration>
</plugin>
------------
+
+ Background-information for this design-decission can be found on the extra
+ page {{{./skip.html}To skip or not to skip: that is the question}}...
\ No newline at end of file