rpm-builder icon indicating copy to clipboard operation
rpm-builder copied to clipboard

If multiple rpms are produced they are all deployed with the same artifactId

Open ProggerPete opened this issue 2 years ago • 3 comments

I'm producing a number of rpms with different package names. However the artifact uploaded to the repo always has the name of the module.

How do I specify the artifactId for the different rpms I produce?

ProggerPete avatar Dec 13 '22 05:12 ProggerPete

yes, the package name has nothing to do with the maven artifact ID. To my knowledge, there can only be one combination of groupId+artifactId+version+classifier+type. Normally that is something like: foo/bar/baz/1.0/baz-javadoc.jar

But I think you can use something like the build-helper to attach additional artifacts: https://www.mojohaus.org/build-helper-maven-plugin/attach-artifact-mojo.html

ctron avatar Dec 13 '22 07:12 ctron

Fair enough, I was hoping for some sort of <artifactId> config option to make my life easy. I'll just give them all different classifiers instead.

ProggerPete avatar Dec 13 '22 07:12 ProggerPete

I guess it could be solved in the RPM builder plugin too. PRs welcome :grin:

Not sure it that works in your case, but you also can set the classifier: https://ctron.github.io/rpm-builder/rpm-mojo.html#classifier

ctron avatar Dec 13 '22 08:12 ctron