Mvn clean deploy error

I am currently trying to publish my java library on maven, but when I run the mvn clean deploy command I always get an error:

INFO] Building jar: D:\Development\Java\Libraries\Cytils\target\Cytils-1.0-javadoc.jar
[INFO]
[INFO] — maven-gpg-plugin:1.5:sign (sign-artifacts) @ Cytils —
Der Befehl “gpg2” ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.458 s
[INFO] Finished at: 2022-08-22T09:26:12+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.5:sign (sign-artifacts) on project Cytils: Exit code: 1 → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] MojoExecutionException - Apache Maven - Apache Software Foundation

Hi @cyklon698

Welcome to the community!

Did you happen to translate the message in german there:

[INFO] — maven-gpg-plugin:1.5:sign (sign-artifacts) @ Cytils —
Der Befehl “gpg2” ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

Translation:
The gpg2 command is either misspelled or could not be found.

Could you take a look and see if that’s part of the issue?