In my Maven build, I call a script that produce some tar.gz artifact. How to specify to maven groupId, artifactId, version and packaging, so it deployed final tar.gz to artifactory during mvn deploy
?
My challenge it that this is possible to achieve with assembly plugin, but not when artifact is output if arbitrary script.
For example: let's assume that my shell produce ABC.tar.gz
with some groupId and artifactId. And my version is 0.0.1
.
I want to deploy ABC.tar.gz
to artifactory so in pom file of next projects, I was able to reference it like:
<dependency>
<groupId>my_group</groupId>
<artifactId>ABC</artifactId>
<version>0.0.1</version>
<type>tar.gz</type>
</dependency>
And maven download ABC.tar.gz
into .m2
.
For set of reasons, I do not want to use assembly plugin.