Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format of passphrase entry in settings.xml? #99

Open
devinfluencer opened this issue Aug 8, 2024 · 4 comments
Open

Format of passphrase entry in settings.xml? #99

devinfluencer opened this issue Aug 8, 2024 · 4 comments

Comments

@devinfluencer
Copy link

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

@ctron
Copy link
Owner

ctron commented Aug 8, 2024

Haven't used it in a while, but IIRC it should work like this:

<passphrase>${passphrase}</passphrase>

@devinfluencer
Copy link
Author

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.

@ctron
Copy link
Owner

ctron commented Aug 9, 2024

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.

@devinfluencer
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants