资 源 简 介
Now Grails2 is not ready, so need to follow the following steps to setup it by Maven.
Install grails-maven-plugin
Download and install grails-maven-plugin(2.0.0.BUILD-SNAPSHOT) from https://github.com/grails/grails-maven.git
Note: Add repository(http://snapshots.repository.codehaus.org) to pom.xml
Create project
mvn archetype:generate -DarchetypeGroupId=org.grails -DarchetypeArtifactId=grails-maven-archetype -DarchetypeVersion=2.0.0.BUILD-SNAPSHOT -DgroupId=example -DartifactId=my-app -DarchetypeRepository=http://repo.grails.org/grails/core
Set target JDK to Java 6 (Optional)
Initialize
mvn initialize
Import into eclipse
mvn eclipse:eclipse
Project refer to: https://github.com/murphylan/my-app