hibernate4-maven-plugin 1.1.0 released!

Today we released the version 1.1.0 of hibernate4-maven-plugin to Central!

The main work in this release were modification to the process of configuration-gathering. The plugin now also is looking for a hibernate.cfg.xml on the classpath or a persistence-unit specified in a META-INF/persistence.xml.

With this enhancement, the plugin is now able to deal with all examples from the official Hibernate Getting Started Guide.

All configuration infos found are merged together with the same default precedences applied by hibernate. So, the overall order, in which possible configuration-sources are checked is now (each later source might overwrite settings of a previous source):

  1. hibernate.properties
  2. hibernate.cfg.xml
  3. persistence.xml
  4. maven properties
  5. plugin configuration

Because the possible new configuration-sources might change the expected behavior of the plugin, we lifted the version to 1.1.

This release also fixes a bug, that occured on some platforms, if the path to the project includes one or more space characters.

Release notes:

commit 94e6b2e93fe107e75c9d20aa1eb3126e78a5ed0a Author: Kai Moritz Date: Sat May 16 14:14:44 2015 +0200 Added script to check outcome of the hibernate-tutorials commit b3f8db2fdd9eddbaac002f94068dd1b4e6aef9a8 Author: Kai Moritz Date: Tue May 5 12:43:15 2015 +0200 Configured hibernate-tutorials to use the plugin commit 4b6fc12d443b0594310e5922e6ad763891d5d8fe Author: Kai Moritz Date: Tue May 5 12:21:39 2015 +0200 Fixed the settings in the pom's of the tutorials commit 70bd20689badc18bed866b3847565e1278433503 Author: Kai Moritz Date: Tue May 5 11:49:30 2015 +0200 Added tutorials of the hibernate-release 4.3.9.Final as integration-tests commit 7e3e9b90d61b077e48b59fc0eb63059886c68cf5 Author: Kai Moritz Date: Sat May 16 11:04:36 2015 +0200 JPA-jdbc-properties are used, if appropriate hibernate-properties are missing commit c573877a186bec734915fdb3658db312e66a9083 Author: Kai Moritz Date: Thu May 14 23:43:13 2015 +0200 Hibernate configuration is gathered from class-path by default commit 2a85cb05542795f9cd2eed448f212f92842a85e8 Author: Kai Moritz Date: Wed May 13 09:44:18 2015 +0200 Found no way to check, that mapped classes were found commit 038ccf9c60be6c77e2ba9c2d2a2a0d261ce02ccb Author: Kai Moritz Date: Tue May 12 22:13:23 2015 +0200 Upgraded scannotation from 1.0.3 to 1.0.4 This fixes the bug that occures on some platforms, if the path contains a space. Created a fork of scannotation to bring the latest bug-fixes from SVN to maven central... commit c43094689043d7da04df6ca55529d0f0c089d820 Author: Kai Moritz Date: Sun May 10 19:06:27 2015 +0200 Added javadoc-jar to deployed artifact commit 524cb8c971de87c21d0d9f0e04edf6bd30f77acc Author: Kai Moritz Date: Sat May 9 23:48:39 2015 +0200 Be sure to relase all resources (closing db-connections!) commit 1e5cca792c49d60e20d7355eb97b13d591d80af6 Author: Kai Moritz Date: Sat May 9 22:07:31 2015 +0200 Settings in a hibernate.cfg.xml are read commit 9156c5f6414b676d34eb0c934e70604ba822d09a Author: Kai Moritz Date: Tue May 5 23:42:40 2015 +0200 Catched NPE, if hibernate-dialect is not set commit 62859b260a47e70870e795304756bba2750392e3 Author: Kai Moritz Date: Sun May 3 18:53:24 2015 +0200 Upgraded oss-type, maven-plugin-api and build/report-plugins commit c1b3b60be4ad2c5c78cb1e3706019dfceb390f89 Author: Kai Moritz Date: Sun May 3 18:53:04 2015 +0200 Upgraded hibernate to 4.3.9.Final commit 038ccf9c60be6c77e2ba9c2d2a2a0d261ce02ccb Author: Kai Moritz Date: Tue May 12 22:13:23 2015 +0200 Upgraded scannotation from 1.0.3 to 1.0.4 This fixes the bug that occures on some platforms, if the path contains a space. Created a fork of scannotation to bring the latest bug-fixes from SVN to maven central... commit c43094689043d7da04df6ca55529d0f0c089d820 Author: Kai Moritz Date: Sun May 10 19:06:27 2015 +0200 Added javadoc-jar to deployed artifact commit 524cb8c971de87c21d0d9f0e04edf6bd30f77acc Author: Kai Moritz Date: Sat May 9 23:48:39 2015 +0200 Be sure to relase all resources (closing db-connections!) commit 1e5cca792c49d60e20d7355eb97b13d591d80af6 Author: Kai Moritz Date: Sat May 9 22:07:31 2015 +0200 Settings in a hibernate.cfg.xml are read commit 9156c5f6414b676d34eb0c934e70604ba822d09a Author: Kai Moritz Date: Tue May 5 23:42:40 2015 +0200 Catched NPE, if hibernate-dialect is not set commit 62859b260a47e70870e795304756bba2750392e3 Author: Kai Moritz Date: Sun May 3 18:53:24 2015 +0200 Upgraded oss-type, maven-plugin-api and build/report-plugins commit c1b3b60be4ad2c5c78cb1e3706019dfceb390f89 Author: Kai Moritz Date: Sun May 3 18:53:04 2015 +0200 Upgraded hibernate to 4.3.9.Final commit 038ccf9c60be6c77e2ba9c2d2a2a0d261ce02ccb Author: Kai Moritz Date: Tue May 12 22:13:23 2015 +0200 Upgraded scannotation from 1.0.3 to 1.0.4 This fixes the bug that occures on some platforms, if the path contains a space. Created a fork of scannotation to bring the latest bug-fixes from SVN to maven central... commit c43094689043d7da04df6ca55529d0f0c089d820 Author: Kai Moritz Date: Sun May 10 19:06:27 2015 +0200 Added javadoc-jar to deployed artifact commit 524cb8c971de87c21d0d9f0e04edf6bd30f77acc Author: Kai Moritz Date: Sat May 9 23:48:39 2015 +0200 Be sure to relase all resources (closing db-connections!) commit 1e5cca792c49d60e20d7355eb97b13d591d80af6 Author: Kai Moritz Date: Sat May 9 22:07:31 2015 +0200 Settings in a hibernate.cfg.xml are read commit 9156c5f6414b676d34eb0c934e70604ba822d09a Author: Kai Moritz Date: Tue May 5 23:42:40 2015 +0200 Catched NPE, if hibernate-dialect is not set commit 62859b260a47e70870e795304756bba2750392e3 Author: Kai Moritz Date: Sun May 3 18:53:24 2015 +0200 Upgraded oss-type, maven-plugin-api and build/report-plugins commit c1b3b60be4ad2c5c78cb1e3706019dfceb390f89 Author: Kai Moritz Date: Sun May 3 18:53:04 2015 +0200 Upgraded hibernate to 4.3.9.Final commit 248ff3220acc8a2c11281959a1496adc024dd4df Author: Kai Moritz Date: Sun May 3 18:09:12 2015 +0200 Renamed nex release to 1.1.0 commit 2031d4cfdb8b2d16e4f2c7bbb5c03a15b4f64b21 Author: Kai Moritz Date: Sun May 3 16:48:43 2015 +0200 Generation of tables and rows for auditing is now default commit 42465d2a5e4a5adc44fbaf79104ce8cc25ecd8fd Author: Kai Moritz Date: Sun May 3 16:20:58 2015 +0200 Fixed mojo to scan for properties in persistence.xml commit d5a4326bf1fe2045a7b2183cfd3d8fdb30fcb406 Author: Kai Moritz Date: Sun May 3 14:51:12 2015 +0200 Added an integration-test, that depends on properties from a persistence.xml commit 5da1114d419ae10f94a83ad56cea9856a39f00b6 Author: Kai Moritz Date: Sun May 3 14:51:46 2015 +0200 Switched to usage of a ServiceRegistry commit fed9fc9e4e053c8b61895e78d1fbe045fadf7348 Author: Kai Moritz Date: Sun May 3 11:42:54 2015 +0200 Integration-Test for envers really generates the SQL commit fee05864d61145a06ee870fbffd3bff1e95af08c Author: Kai Moritz Date: Sun Mar 15 16:56:22 2015 +0100 Extended integration-test "hib-test" to check for package-level annotations commit 7518f2a7e8a3d900c194dbe61609efa34ef047bd Author: Kai Moritz Date: Sun Mar 15 15:42:01 2015 +0100 Added support for m2e Thanks to Andreas Khutz

Leave a Reply

Your email address will not be published. Required fields are marked *