Making maven release plugin on windows with git, gpg and github to work

 

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.

 

Continue reading

Eclipse on linux using smaller (or larger) fonts in all views

Eclipse on linux uses fonts and sizes defined by the GTK theme fonts. While it is fairly easy to change the editor fonts, it is not possible to do it for the views like the project explorer and the rest of the user interface. I found a brilliant article at the Daniel Ferbers Technical Tavern that explains how to run eclipse in its own theme settings and thus control exactly how it looks. And the trick is very easy to do too. The original article with all the details and other options is this: “Smaller font sizes for Eclipse on Linux“. I posted a summary for my own reference.

Continue reading