rpm-builder
rpm-builder copied to clipboard
Format of passphrase entry in settings.xml?
Hi ctron, can you please document the expected format of the passphrase entry in settings.xml. I can't get it right... Thomas
Haven't used it in a while, but IIRC it should work like this: https://github.com/ctron/rpm-builder/blob/3095c0ed0ef27c3baaa87f898f18c8ea8a7733ce/src/it/test10-defaultname/pom.xml#L58
Sorry, I meant how to define the passphrase in settings.xml.
I tried
<server>
<id>my.passphrase</id>
<passphrase>secret</passphrase>
</server>
(as documented for the rpm-maven-plugin) but that didn't work.
The maven-rpm-plugin is something different. So you need to define it in the pom.xml, and it does support variable substitution. Should also work with env-vars.
So
It is possible to use properties and provide this information either from the command line or the global Maven settings file .m2/settings.xml.
from Signing is not true anymore?
settings.xml can't be used?
OK, I'll send a PR changing the docs.