Is it possible to get a Java jar-with-dependencies using ansible
package maven_artifact
?
Now for a bit of a context:
mvn deploy
in a registry (in my case: Nexus)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.
You can do this with the following steps:
jar-with-dependencies
is uploaded to Nexus with a specific classifier
, e.g. full
. For more info on the classifier
, please check the Maven documentation.classifier
attribute to point to your full
artifact.