-
Notifications
You must be signed in to change notification settings - Fork 754
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
passphraseServerId appears not to be set (or is different to the default) #129
Comments
Hello @zcourts. Could you pease provide some more information about the issue ?
|
@dmitry-shibanov I'm experiencing the same, but setting <plugin>
<artifactId>maven-gpg-plugin</artifactId>
<configuration>
<passphraseServerId>gpg.passphrase</passphraseServerId> <!-- this can be omitted and the outcome is the same -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin> Here's my workflow file: |
It also happens with the task tag |
Update: I think that's because you must set It seems the main use-case for this action (a runner shared by multiple projects) is the one least focused on in the documentation. |
Apparently you also need to specify the key to be used by Personally, I ended up just choosing to use the sign-maven-plugin instead of the |
Hello @zcourts , just gentle ping. |
Hello everyone. For now I'm closing the issue. If you have additional information, feel free to reopen it. |
This got buried in hundreds of notifications.
I don't have access to the project at the moment to remind myself what the final resolution was but I think I just provided that element in the config with the variable. No need to re-open there's a workaround and also the alternative sign-maven-plugin mentioned above |
Just in case anyone else stumbles across this discussion looking for an answer to |
Description:
When using the maven-gpg-plugin during publishing of an artifact the action fails with:
I've seen issue #91 and the config snippet is included as listed there and in the project's README.
I had to manually set:
Which as far as I understand should be the default.
Task version:
v1
Platform:
Runner type:
Repro steps:
Use the plugin like this:
Notice
<passphraseServerId>gpg.passphrase</passphraseServerId>
is not included.In a subsequent step run:
Expected behavior:
mvn release:{prepare,perform} should work without having to set
passphraseServerId
to the default value.Actual behavior:
passphraseServerId
must be set togpg.passphrase
inpom.xml
for the release to succeed.The text was updated successfully, but these errors were encountered: