You are viewing an old version of this page. View the current version. Compare with Current · View Page History
Steps to setup development environment for Groovy core with Eclipse and Maven
- Install JDK 1.4.2 or above (e.g. Sun JDK 5.0 version 1.5.0_06).
- JDK is available on http://java.sun.com or other sources.
- Remember to set JAVA_HOME system variable after installation
- (Optional) Add JAVA_HOME/bin to PATH for executing java commands
- Install Eclipse 3.1 or above (e.g. Eclipse 3.2 M6)
- Eclipse is available on http://www.eclipse.org
- Install Maven 1.0.2
- Maven 1.0.2 is available on http://maven.apache.org/maven-1.x/
- Remember to set MAVEN_HOME system variable after the installation
- Remember to add MAVEN_HOME/bin to PATH for executing maven command
- Extract groovy source
- Open Eclipse installed, switch to CVS perspective. If you are not familiar with Eclipse, in menu Help -> Welcome may help you a lot.
- Browse to know CVS info
- Create a new repository, extract groovy source (the folder groovy-core. You can extract it as project name groovy)
- Build groovy source
- In command line, go to the groovy project you extracted, execute "maven" in command line, make sure the build success, browse groovy/target/test-reports if you got JUnit test fails.
- Maken Eclipse Groovy project work (can be built and without error in Problem view)
- Close Eclipse
- execute maven -Dmaven.eclipse.workspace=d:\dev\eclipse3.2\workspace eclipse:add-maven-repo. Refer to http://maven.apache.org/maven-1.x/plugins/eclipse/goals.html if you need further information about Maven and Eclipse.
- start Eclipse and refresh the groovy project, make sure there is no errors in Problem view