I seem to be unable to run
grails shiro-quick-start --prefix=org.example.Shiro
in the terminal when I'm on Grails 2.3. Anyone know why that is?
I have a feeling it is to do with me being unable to run
grails install-plugin shiro
also as it says
Since Grails 2.3, it is no longer possible to install plugins using the install-plugin command.
Plugins must be declared in the grails-app/conf/BuildConfig.groovy file.
Example:
grails.project.dependency.resolution = {
...
plugins {
compile ":shiro:1.2.0"
}
}
Latest version of grails no longer supports install-plugin command, and all plugins must be configured in BuildConfig.groovy and not application.properties.
Try this
In your BuildConfig.groovy
plugins {
compile (":shiro:1.2.0") { excludes "servlet-api" }
}
You need to exclude dependency to servlet-api, see my comment above and this link
Next, start grails console and use refresh-dependencies command, and then compile. After that exist grails console and start it again. (I have to do this after installing new plugin, if i want to execute a gant script from that plugin)
Try running shiro-quick-start command again, it should work definitely.
BTW, you may want to give a look to nimble plugin, it extends functionality provided by shiro plugin, and gives you ready to use UI etc, it may save you a lot of time.