Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Steps to setup development environment for Groovy core with Eclipse and Maven

  1. 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
  2. Install Eclipse 3.1 or above (e.g. Eclipse 3.2 M6)
  3. 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
  4. Extract groovy source
    • Open Eclipse installed, decide where your workspace is (will be reference later), switch to CVS perspective. If you are not familiar with Eclipse, in menu Help -> Welcome may help you a lot.
    • Browse CVS to know CVS info
    • Create a new repository, extract groovy source (the folder groovy-core. You can extract it as project name groovy)
  5. 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.
  6. Make Eclipse Groovy project work (can be built and without error in Problem view)
    • Close Eclipse
    • execute "maven -Dmaven.eclipse.workspace=ECLIPSE_WORKSPACE eclipse:add-maven-repo". The ECLIPSE_WORKSPACE is the path of your eclipse workspace. (e.g. in MS Windows, it may be c:\eclipse\workspace). Refer to http://maven.apache.org/maven-1.x/plugins/eclipse/goals.html if you need further information about Maven goals for Eclipse.
    • start Eclipse and refresh the groovy project, make sure there is no errors in Problem view
  7. Done!
  • No labels