I'm surprised that the folks at Jboss/Wildfly (ahem, Redhat), don't create package files of their application server. While RPM packaging holds many advantages over a plain-old tarball, we must be conscious of other distributions and their packaging formats. Creating an RPM specfile or Debian dpkg can be a sobering experience. And if we want to add upgrade ability it can get downright messy.
Welcome to FPM, the Effing Package Manager, (don't you just LOVE that title?). An outstanding tool that simplifies complex tasks and will accept a variety of input formats and will generate a variety of output formats.
I've included my Makefiles and packages for a jboss8 and jboss10 community edition rpm package.