2013-10-30

How to install Spring Security Core Plugin 2.0 in Grails


1. in BuildConfig.groovy, add:
compile ':spring-security-core:2.0-RC2'
and maven repository:
mavenRepo 'http://repo.spring.io/milestone'
    note: if not set this maven repository, you will get error:

    org.springframework.security#spring-security-core;3.2.0.RC1: not found

2. run
$ grails compile
    note: if skip this step you will get error:

    Error org.codehaus.groovy.grails.cli.ScriptNotFoundException

3. then run
$ grails s2-quickstart com.testapp User Role
4. done.

No comments:

Post a Comment