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

Format of passphrase entry in settings.xml?

Open devinfluencer opened this issue 1 year ago • 4 comments

Hi ctron, can you please document the expected format of the passphrase entry in settings.xml. I can't get it right... Thomas

devinfluencer avatar Aug 08 '24 09:08 devinfluencer

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

ctron avatar Aug 08 '24 09:08 ctron

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.

devinfluencer avatar Aug 09 '24 08:08 devinfluencer

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.

ctron avatar Aug 09 '24 08:08 ctron

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.

devinfluencer avatar Aug 09 '24 13:08 devinfluencer