If you already spent time looking for answers you may want to skip the background. The very quick answer is to use the following combination:
- Official windows Git configured to use plink
- plink.exe, puttygen.exe and pageant.exe from here
- GnuPG for windows, the minimal installation would do
- Standard windows command prompt, not git bash not cygwin shell
The long story
I recently tried to release “properly” an old open source project of mine at the sonatype open source maven repository mostly to learn how to do a complete maven managed project. The particular project was a good use case, a small multiple module project with two modules, one module the library and one a web demo (war packaging).
The past two months I am using windows (linux user on gaming period!) and I found out that the combination of maven release plugin, git managed project, gnupg to sign the jars is almost like a catch 22 for windows users with errors about paths, invisible passphrase prompts and hangs. Also it is surprising how little information is out there and how none of the solutions solved the problem so I decided to write this small guide.