Sunday, October 9, 2011

Spring Roo Addon Create minor issues

As a part of a code template effort, I sat out to create a Hello World Spring Roo addon. I was happy to see that Spring docs had a step-by-step instructions at http://static.springsource.org/spring-roo/reference/html-single/index.html#simple-addons
I started following and here are some bumps I ran into that other people on the same mission later may run into as well


1. When running svn commands against your google code repo,
I got this
svn: Commit failed (details follow):
svn: MKACTIVITY of '/svn/!svn/act/c11bc650-0dcf-0144-a1a3-76f951a87324': authorization failed: Could not authenticate to server: rejected Basic challenge

It turns out, the password for the svn repo is not your gmail password.
To find out your google code password,

Login to your gmail account,

go to http://code.google.com/u/<your gmail id>

click on settings and you should see your google code password

2. When running mvn clean install it asked for a GPG Passphrase - here is what to do about that:

donwload gpg
http://www.gpg4win.org/download.html

After the msi installer finishes,

Use Kleopatra to create a New Certificate and a Passphrase

Start Kleoptara -> New -> Create New Certificate -> follow along,

I tried running mvn clean install and this time it complained

'gpg.exe' is not recognized as an internal or external command,
operable program or batch file.


So,

Add gpg to the PATH,

in my case PGP was installed to C:\Program Files\GNU\GnuPG

so I added C:\Program Files\GNU\GnuPG to the PATH Environment variable

and everything should be fine and dandy after that.

Hope this helps someone!