Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: version unspecific release update site

...

Info

The most recent version of the Groovy-Eclipse-Compiler plugin for maven is 2.8.0-01.
2.9.01-01-SNAPSHOT is now available from http://nexus.codehaus.org/snapshots/.

The most recent version of the groovy-eclipse-batch artifact is 2is 2.1.5-03 (for Groovy 2.1) and 2.0.7-03 (for Groovy 2.0). 3.7-01.

They are both available from maven central.

 

How to use the compiler plugin---Setting up the POM

...

Code Block
languagehtml/xml
<build>
...
<plugins>
  <plugin>
    <artifactId>maven-compiler-plugin</artifactId>
    <!-- 2.8.0-01 and later require maven-compiler-plugin 3.01 or higher -->
    <version>3.0<1</version>
    <configuration>
      <compilerId>groovy-eclipse-compiler</compilerId>
      <!-- set verbose to be true if you want lots of uninteresting messages -->
      <!-- <verbose>true</verbose> -->
    </configuration>
    <dependencies>
      <dependency>
        <groupId>org.codehaus.groovy</groupId>
        <artifactId>groovy-eclipse-compiler</artifactId>
        <version>2.89.01-01</version>
      </dependency>
      <!-- for 2.8.0-01 and later you must have an explicit dependency on groovy-eclipse-batch -->
      <dependency>
        <groupId>org.codehaus.groovy</groupId>
        <artifactId>groovy-eclipse-batch</artifactId>
        <version>2.13.57-03<01</version>
        <!-- or choose a different compiler version -->
        <!-- <version>1<version>2.1.8.6-01</version> -->
        <!-- <version>1.7.10-06</version> -->
</dependency>
 </dependencies>
  </plugin>
  ...
</plugins>
</build>

...

Code Block
languagehtml/xml
<dependencies>
  ...
  <dependency>
    <groupId>org.codehaus.groovy</groupId>
    <artifactId>groovy-all</artifactId>
    <version>1<version>2.83.6<7</version>
  </dependency>
  ...
</dependencies>

...

Code Block
languagehtml/xml
<build>
  ...
  <plugin>
    <groupId>org.codehaus.groovy</groupId>
    <artifactId>groovy-eclipse-compiler</artifactId>
    <version>2.89.01-01</version>
    <extensions>true</extensions>
  </plugin>
  ...
</build>

...

If you are going to be working with your maven project inside of Eclipse, it is strongly recommended that you use m2eclipse. And to use your Groovy projects with m2eclipse, you will need to install the Groovy-Eclipse configurator for m2eclipse. This feature is available any of the Groovy-Eclipse update sites (e.g., nightly, milestone, or release). Just go to your Eclipse update manager and add the Groovy-Eclipse update sites (if you haven't done so already). Select the Groovy-Eclipse M2E integration.

Release Builds

Development Builds

The Groovy-Eclipse configurator for m2eclipse is not compatible with AspectJ or Scala.  So you cannot use a joint AspectJ/Scala/Groovy project in Eclipse. These languages must be separated into separate sub-projects.

...