Building Narayana and updating WildFly modules

From beginning I work with Narayana on WildFly I struggle to build Narayana and update WildFly modules with the changes coming from the new build. This is necessary especially when working with some patches or fixes Narayana codebase belonging to issues coming from WildFly (JBoss EAP).

by term 'updating Narayana modules in WildFly' I mean process after which the WildFly installation contains new Narayana jar files

For WildFly 11 (JBoss EAP 7.1) we have following modules touching transactions.

by default you can find the module.xml descriptor and jar files belonging to the WildFly module at path $WILDFLY_HOME/modules/system/layers/base/<module-name-slash-delimited>/main

ArjunaJTA/cdi contains the updated code, the ArjunaJTS/narayana-jts-idlj causes the artifact which is put to WildFly to be rebuilt based on the compiled 'cdi' classes and narayana-full is required as '.zip' file is used by the update script.

Update module.xml of other jars

There is another script which I started to use for updating specific WildFly modules when