Kai Moritz [Tue, 11 Dec 2012 16:30:19 +0000 (17:30 +0100)]
Skipping of unchanged scenarios is now based on MD5-sums of all classes
When working with Netbeans, the schema was often rebuild without need.
The cause of this behaviour was, that Netbeans (or Maven itself) sometimes
touches unchanged classes. To avoid this, hibernat4-maven-plugin now
calculates MD5-sums for all annotated classes and compares these instead of
the last-modified value.
Kai Moritz [Tue, 11 Dec 2012 16:02:14 +0000 (17:02 +0100)]
hibernate4:export is skipped, when annotated classes are unchanged
Hbm2DdlMojo now checks the last-modified-timestamp of all found annotated
classes and aborts the schema-generation, when no class has changed and no
new class was added since the last execution.
It then sets a maven-property, to indicate to other plugins, that the
generation was skipped.
Kai Moritz [Wed, 28 Nov 2012 16:05:10 +0000 (17:05 +0100)]
DriverProxy now implements Driver.getParentLogger()
Otherwise, the plugin would not run with database-drivers compiled for
Java 1.7.
This method must not be annotated with @Override, because otherwise, the
plugin won't compile under Java 1.6 (the method was added to the interface
Driver in Java 1.7).
Kai Moritz [Sat, 20 Oct 2012 13:55:30 +0000 (15:55 +0200)]
Attribute "skip" is no initialized with value of property maven.test.skip
If one runs hibernate4:export with the switch "-Dmaven.test.skip=true", the
configured database was droped, although the execution of the tests was
skipped.
This might lead to serious data-loss, if one builds a project on the
production-machine. Hence, the excecution of hibernate4:export is aborted
now, if maven.test.skip is true.