Is it possible to get a Java jar-with-dependencies using ansible
package maven_artifact
?
Now for a bit of a context:
- I have a simple Java application. This means I need to produce a jar-with-dependencies type of jar for this app to be executable as a stand alone.
- I'm pushing my jar using
mvn deploy
in a registry (in my case: Nexus) - I'm using Ansible to deploy my app and it seems to be a sensible choice to use
maven_artifact
package (I suppose it manages idempotence better then I would).
Very logically, when I do this, I get the simple jar (without all dependencies) and not the jar-with-dependenices.