Hibernate Tools Maven Plugin

Hi
I started a hibernate-tools-maven-plugin to provide the features of hibernate-tools to maven users without the need to have to run ant. You can find the Plugin here:

I already created a Issue for this (HBX-1516) and wrote about it in the old forum:
https://forum.hibernate.org/viewtopic.php?f=6&t=1045122

There it was recommended that I should make a pull request for this change.
However, I don’t think that it would be easily possible to do so, because maven plugins need to be individual maven modules. And as hibernate-tools is a single maven module one would first have to convert it to a multi module project which is probably a bit of an overkill.

Therefore I think it would be better to integrate it as a separate Project/Repository in the Hibernate namespace. But how can I integrate my project there? Could you create a new empty project so that I can provide a pull request, or how do you recommend that I could integrate this plugin?

Regards, Jacques

Hi Jacques,

The Hibernate Tool project has been a multi-project maven module for quite some time now. Would it be possible to integrate this addition, which is very welcome, as a new module and create a pull request as suggested by Vlad?

Cheers,
Koen

Hi Koen

Thanks for the hint. Due to the weird folder structure (hibernate-tools/main/src/main) I was a little confused.
I will have a look at it and setup a pull request.
Regards, Jacques

Hi Koen

The pull request is ready for review:

Regards, Jacques

Very good idea to integrate this kind of plugin into Hibernate. Thanks!

Hi there.
First, thanks for this very useful plugin !
I wonder if it is still updated… and if so, if it will be possible to integrate the reverse engineering using the DelegatingReverseEngineeringStrategy class like in eclipse plugin ?

Hey
You’re welcome.
As this plugin is now part of hibernate-tools I assume that it is updated at the same pace as the hibernate-tools project. See https://github.com/hibernate/hibernate-tools/pulse/monthly

Now concerning your request about the support for reverse engineering strategies I think that you are lucky, because there is already support for reverse engineering strategies. See:
https://stadler.github.io/hibernate-tools/hbm2java-mojo.html#revengStrategy

Note that this is not the official plugin documentation because until now the hibernate-tools project did not include my pull request that would automatically generate this documentation. You’re welcome to comment to https://github.com/hibernate/hibernate-tools/pull/842 to bring this a step further.

Hey,
how can I access a CustomReverseEngStrategy in my current Project.It seems that Plugin Classloader doesn’t find classes of the current Project?
Thank You for this very useful plugin!

1 Like

Ho
I guess it should work if you add the reveng strategy as plugin dependency as shown here at the bottom:

Hope that helps.

Hi Andreas,

I have the same problem, did you solve this problem?

Thanks