# Hibernate Tools Maven Plugin

**URL:** https://discourse.hibernate.org/t/hibernate-tools-maven-plugin/62
**Category:** Hibernate Tools
**Created:** [January 12, 2018, 9:15pm UTC](https://discourse.hibernate.org/t/hibernate-tools-maven-plugin/62 "2018-01-12T21:15:40Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![stadler](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/stadler/32/36_2.png) [@stadler](https://discourse.hibernate.org/u/stadler)
#### Post date: [January 12, 2018, 9:15pm UTC](https://discourse.hibernate.org/t/hibernate-tools-maven-plugin/62/1 "2018-01-12T21:15:40Z")

</div>

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:

> **[stadler/hibernate-tools-maven-plugin](https://github.com/stadler/hibernate-tools-maven-plugin)**
>
> Maven Plugin for Hibernate Tools. Contribute to stadler/hibernate-tools-maven-plugin development by creating an account on GitHub.

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](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

---

<div class="post-metadata">

### Author: ![Koen\_Aers](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/koen_aers/32/27_2.png) [@Koen\_Aers](https://discourse.hibernate.org/u/Koen_Aers)
#### Post date: [January 16, 2018, 6:15am UTC](https://discourse.hibernate.org/t/hibernate-tools-maven-plugin/62/2 "2018-01-16T06:15:29Z")

</div>

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

---

<div class="post-metadata">

### Author: ![stadler](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/stadler/32/36_2.png) [@stadler](https://discourse.hibernate.org/u/stadler)
#### Post date: [January 16, 2018, 8:02pm UTC](https://discourse.hibernate.org/t/hibernate-tools-maven-plugin/62/3 "2018-01-16T20:02:18Z")

</div>

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

---

<div class="post-metadata">

### Author: ![stadler](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/stadler/32/36_2.png) [@stadler](https://discourse.hibernate.org/u/stadler)
#### Post date: [January 18, 2018, 7:31pm UTC](https://discourse.hibernate.org/t/hibernate-tools-maven-plugin/62/4 "2018-01-18T19:31:53Z")

</div>

Hi Koen

The pull request is ready for review:

> <https://github.com/hibernate/hibernate-tools/pull/815>

Regards, Jacques

---

<div class="post-metadata">

### Author: ![Reinhard\_Seidler](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@Reinhard\_Seidler](https://discourse.hibernate.org/u/Reinhard_Seidler)
#### Post date: [April 7, 2018, 11:11am UTC](https://discourse.hibernate.org/t/hibernate-tools-maven-plugin/62/5 "2018-04-07T11:11:42Z")

</div>

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

---

<div class="post-metadata">

### Author: ![scn69](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/scn69/32/507_2.png) [@scn69](https://discourse.hibernate.org/u/scn69)
#### Post date: [March 1, 2019, 2:25pm UTC](https://discourse.hibernate.org/t/hibernate-tools-maven-plugin/62/6 "2019-03-01T14:25:31Z")

</div>

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 ?

---

<div class="post-metadata">

### Author: ![stadler](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/stadler/32/36_2.png) [@stadler](https://discourse.hibernate.org/u/stadler)
#### Post date: [March 2, 2019, 2:47pm UTC](https://discourse.hibernate.org/t/hibernate-tools-maven-plugin/62/7 "2019-03-02T14:47:08Z")

</div>

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](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](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](https://github.com/hibernate/hibernate-tools/pull/842) to bring this a step further.

---

<div class="post-metadata">

### Author: ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://discourse.hibernate.org/u/Andreas)
#### Post date: [March 27, 2019, 5:34pm UTC](https://discourse.hibernate.org/t/hibernate-tools-maven-plugin/62/8 "2019-03-27T17:34:07Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![stadler](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/stadler/32/36_2.png) [@stadler](https://discourse.hibernate.org/u/stadler)
#### Post date: [March 27, 2019, 8:17pm UTC](https://discourse.hibernate.org/t/hibernate-tools-maven-plugin/62/9 "2019-03-27T20:17:52Z")

</div>

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

> **[stadler/hibernate-tools-maven-plugin](https://github.com/stadler/hibernate-tools-maven-plugin)**
>
> Maven Plugin for Hibernate Tools. Contribute to stadler/hibernate-tools-maven-plugin development by creating an account on GitHub.

Hope that helps.

---

<div class="post-metadata">

### Author: ![dpachoes](https://avatars.discourse-cdn.com/v4/letter/d/838e76/32.png) [@dpachoes](https://discourse.hibernate.org/u/dpachoes)
#### Post date: [October 18, 2019, 10:09am UTC](https://discourse.hibernate.org/t/hibernate-tools-maven-plugin/62/10 "2019-10-18T10:09:08Z")

</div>

Hi Andreas,

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

Thanks
