<div dir="ltr">Hi,<div><br></div><div>I've sent a pull request which provides a Maven plug-in for patch-gen: <a href="https://github.com/jbossas/patch-gen/pull/8">https://github.com/jbossas/patch-gen/pull/8</a>. Tested it successfully by using it to create a patch file for updating Hibernate Validator.</div><div><br></div><div>I hope a release - including deployment to Nexus - of this could be done some time soon?</div><div><br></div><div>Thanks,</div><div><br></div><div>--Gunnar</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-31 16:47 GMT+01:00 Gunnar Morling <span dir="ltr"><<a href="mailto:gunnar@hibernate.org" target="_blank">gunnar@hibernate.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Users of the different Hibernate projects often wish to upgrade their WildFly installation to the latest releases of Hibernate ORM, Search or Validator.</div><div><br></div><div>For that purpose we began to provide ZIP files containing the newer JARs and module.xml descriptors, to be unzipped into the server's module directory. We use separate slot names, so to not overwrite existing modules but just add newer versions next to them.</div><div><br></div><div>But sometimes redefining the default slot actually is desirable. If an update for instance is just a bugfix release, it's sensible to push this to the main slot so users can benefit from it without having to explicitly specify a slot name, suppress any implicit default module and so on.</div><div><br></div><div>But as I said we don't want to mess with any existing modules, so I've been looking into alternatives. One thing I found was to provide the updated modules in a separate layer, which then overrides the original modules from the "base" layer, without physically altering them. The user can go back to the original ones just by removing an entry in layers.conf.</div><div><br></div><div>That works nicely, but then I also learned about the patch mechanism. So I wondered whether that should be the approach for us to follow, e.g. I also saw that Weld is providing patches for WF. Is this then the officially recommended way (TM) for upstream projects for shipping easy-to-use updates of their components for WF?</div><div><br></div><div>One thing getting in the way of this is the lack of a Maven plug-in for the patch-gen tool. This makes patch creation quite unwieldy in an automated build process. Is there any chance for getting a Maven plug-in for patch-gen? If there is interest, I'd also be volunteering to provide it, it shouldn't take too long.</div><div><br></div><div>Thanks for any hints,</div><div><br></div><div>--Gunnar</div></div>
</blockquote></div><br></div>