Tuesday, May 18, 2010

Making grails not ask userid/password for anonymous svn https access

If you happen to create your own repository for grails plugins and host it in your organization's SVN, simply adding the path in BuildConfig.groovy

grails.plugin.repos.discovery.myrepo="https://----plugins repository path----"

will ask your for SVN userId and password for most grails commands. like this:

Authentication for svn repo at local discovery is required. ...
Please enter your SVN username:

Please enter your SVN password:

I avoided this by using "https://anonymous:@----plugins repository path----"