Ubuntu 12.04 3.2.0-20-generic-pae kernel
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-3ubuntu3)
OpenJDK Server VM (build 20.0-b12, mixed mode)
I installed STS 2.9.1 RELEASE which includes apache-maven-3.0.3
I placed the apache-maven-3.0.3 in my PATH environment variable
I created a project with:
mvn archetype:generate \
mvn proceeded to download the internet and then created the project folder with the pom file
I modified the pom file to set the source and target to 1.6 as described in the grails manual
I then did:
which created the grails directory structure
which resulted in the app successfully running
I then tried running just the unit tests with:
mvn grails:exec -Dcommand=test-app -Dargs="--unit"
which resulted in successful build
I then installed the spring security core plugin with:
mvn grails:install-plugin -DpluginName=spring-securit-core
I then tried using the s2-quickstart script:
mvn grails:exec -Dcommand=s2-quickstart -Dargs="com.henyo.foobar.model User Role"
which resulted in a build FAILURE:
[ERROR] Failed to execute goal org.grails:grails-maven-plugin:1.3.7:exec (default-cli) on project foobar: Unable to start Grails: java.lang.reflect.InvocationTargetException: org/springframework/security/core/Authentication: org.springframework.security.core.Authentication -> [Help 1]
It seems that the grails maven integration still needs a lot of work. I suspect this is a dependency resolution issue.
Uploaded a sample project that has this issue: http://dl.dropbox.com/u/5541070/foobar.tar.gz
I hope you found the post useful. You can subscribe via email or subscribe via a feed reader to get relevant updates from this blog. Have a nice day.