I have a Vertx application using Groovy,which I am trying to distribute as a fat jar. I have no trouble running the main verticle or running the main module using 'vertx' command, which uses local Vertx 2.1.5 installation.
I am also able to build a fat JAR file using either 'gradle fatjar' or 'vertx fatjar' command. The problem is with running the fatjar thus created. The error message I get is
SEVERE: Module io.vertx~lang-groovy~2.1.1-final not found in any repositories.
I am in the intranet environment without access to global Maven repositories. I have a local Vertx installation (which contains the groovy-lang module in question). The module is not bundled in the fatjar file, which I assume is the problem. I added the module to the local Nexus repo (which is a tricky task, since it is not immediately clear what artifact needs to be in Nexus).
Where does Vertx looks for the groovy-lang module during fatjar creation? Do I need to include it inNexus or should Vertx be able to find it under Vertx installation? How to resolve the problem of the missing module?
Thank you,
Michael