groovy + maven

classic Classic list List threaded Threaded
52 messages Options
123456
Reply | Threaded
Open this post in threaded view
|

Re: groovy + maven

Travis Schneeberger
Here is the project I tried the compiler plugin on:

https://test.kuali.org/svn/rice/trunk/

On Wed, May 25, 2011 at 3:53 PM, Andrew Eisenberg <[hidden email]> wrote:
Thanks for trying this.  It looks like the problem you are having is
that you are picking up the snapshot version of the 1.7.10
groovy-eclipse-batch artifact.  That one does have a problem.  I'm not
sure if this is something coming from your pom, or if this a problem
in my area.  Can you send over the relevant pom snippet where you
declare a dependency on groovy-eclipse-compiler?

The problem that Johann is having is different.  It looks like some
groovy 1.7 files ended up in the groovy 1.8 artifact.  It is a
packaging problem.

Anyone have a good-sized groovy-maven project I can play with?



On Wed, May 25, 2011 at 12:47 PM, Travis Schneeberger
<[hidden email]> wrote:
> I've tried out the new eclipse compiler and got the following:
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> (default-compile)
> on project rice-core-framework: Execution default-compile of goal
> org.apache.maven.plugins:maven-compiler-plug
> in:2.3.2:compile failed: A required class was missing while executing
> org.apache.maven.plugins:maven-compiler-
> plugin:2.3.2:compile: org/codehaus/groovy/ast/ClassCodeExpressionTransformer
> [ERROR] -----------------------------------------------------
> [ERROR] realm =
>  plugin>org.apache.maven.plugins:maven-compiler-plugin:2.3.2
> [ERROR] strategy =
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] =
> file:/c:/m2repo/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2
> .3.2.jar
> [ERROR] urls[1] =
> file:/c:/m2repo/org/codehaus/groovy/groovy-eclipse-compiler/2.5.1/groovy-eclipse-compiler-2.
> 5.1.jar
> [ERROR] urls[2] =
> file:/c:/m2repo/org/codehaus/groovy/groovy-eclipse-batch/1.7.10-SNAPSHOT/groovy-eclipse-batc
> h-1.7.10-SNAPSHOT.jar
> [ERROR] urls[3] =
> file:/c:/m2repo/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
> [ERROR] urls[4] = file:/c:/m2repo/log4j/log4j/1.2.12/log4j-1.2.12.jar
> [ERROR] urls[5] =
> file:/c:/m2repo/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
> [ERROR] urls[6] =
> file:/c:/m2repo/com/google/collections/google-collections/1.0/google-collections-1.0.jar
> [ERROR] urls[7] = file:/c:/m2repo/junit/junit/3.8.2/junit-3.8.2.jar
> [ERROR] urls[8] =
> file:/c:/m2repo/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
> [ERROR] urls[9] =
> file:/c:/m2repo/org/codehaus/plexus/plexus-compiler-api/1.8.1/plexus-compiler-api-1.8.1.jar
> [ERROR] urls[10] =
> file:/c:/m2repo/org/codehaus/plexus/plexus-compiler-manager/1.8.1/plexus-compiler-manager-1
> .8.1.jar
> [ERROR] urls[11] =
> file:/c:/m2repo/org/codehaus/plexus/plexus-compiler-javac/1.8.1/plexus-compiler-javac-1.8.1
> .jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import  from realm
> ClassRealm[project>org.kuali.rice:rice:2.0.0-m5-SNAPSHOT, parent: Cla
> ssRealm[maven.api, parent: null]]]
> [ERROR]
> [ERROR] -----------------------------------------------------:
> org.codehaus.groovy.ast.ClassCodeExpressionTran
> sformer
> I realized that this missing class is in the groovy-all jar so I added that
> as a dependency of the compiler and got the following:
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> (default-compile)
> on project rice-core-framework: Execution default-compile of goal
> org.apache.maven.plugins:maven-compiler-plug
> in:2.3.2:compile failed: An API incompatibility was encountered while
> executing org.apache.maven.plugins:maven
> -compiler-plugin:2.3.2:compile: java.lang.VerifyError: (class:
> org/codehaus/groovy/antlr/parser/GroovyLexer, m
> ethod: makeToken signature: (I)Lantlr/Token;) Wrong return type in function
> [ERROR] -----------------------------------------------------
> [ERROR] realm =
>  plugin>org.apache.maven.plugins:maven-compiler-plugin:2.3.2
> [ERROR] strategy =
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] =
> file:/c:/m2repo/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2
> .3.2.jar
> [ERROR] urls[1] =
> file:/c:/m2repo/org/codehaus/groovy/groovy-eclipse-compiler/2.5.1/groovy-eclipse-compiler-2.
> 5.1.jar
> [ERROR] urls[2] =
> file:/c:/m2repo/org/codehaus/groovy/groovy-eclipse-batch/1.7.10-SNAPSHOT/groovy-eclipse-batc
> h-1.7.10-SNAPSHOT.jar
> [ERROR] urls[3] =
> file:/c:/m2repo/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
> [ERROR] urls[4] = file:/c:/m2repo/log4j/log4j/1.2.12/log4j-1.2.12.jar
> [ERROR] urls[5] =
> file:/c:/m2repo/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
> [ERROR] urls[6] =
> file:/c:/m2repo/com/google/collections/google-collections/1.0/google-collections-1.0.jar
> [ERROR] urls[7] = file:/c:/m2repo/junit/junit/3.8.2/junit-3.8.2.jar
> [ERROR] urls[8] =
> file:/c:/m2repo/org/codehaus/groovy/groovy-all/1.8.0/groovy-all-1.8.0.jar
> [ERROR] urls[9] =
> file:/c:/m2repo/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
> [ERROR] urls[10] =
> file:/c:/m2repo/org/codehaus/plexus/plexus-compiler-api/1.8.1/plexus-compiler-api-1.8.1.jar
> [ERROR] urls[11] =
> file:/c:/m2repo/org/codehaus/plexus/plexus-compiler-manager/1.8.1/plexus-compiler-manager-1
> .8.1.jar
> [ERROR] urls[12] =
> file:/c:/m2repo/org/codehaus/plexus/plexus-compiler-javac/1.8.1/plexus-compiler-javac-1.8.1
> .jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import  from realm
> ClassRealm[project>org.kuali.rice:rice:2.0.0-m5-SNAPSHOT, parent: Cla
> ssRealm[maven.api, parent: null]]]
> [ERROR]
>
> Any ideas?
>
> ~Travis
> On Wed, May 25, 2011 at 11:56 AM, Andrew Eisenberg <[hidden email]>
> wrote:
>>
>> Thanks for getting back to me on this.  I only have a very simple
>> project that I compile against, so it is not testing all paths in the
>> compiler.  I'll have a deeper look.  I'll also look for a larger
>> project to compile (do you know of any?).
>>
>> On Wed, May 25, 2011 at 12:48 PM, Johann Burkard
>> <[hidden email]> wrote:
>> > -----BEGIN PGP SIGNED MESSAGE-----
>> > Hash: SHA1
>> >
>> > Andrew,
>> >
>> > On 05/25/2011 12:20 AM, Andrew Eisenberg wrote:
>> >> Would you want to test out a new release of the
>> >> groovy-eclipse-compiler?
>> >
>> > of course. With this configuration:
>> >
>> > <plugin>
>> > <artifactId>maven-compiler-plugin</artifactId>
>> > <version>2.3.1</version>
>> > <configuration>
>> > <compilerId>groovy-eclipse-compiler</compilerId>
>> > </configuration>
>> > <dependencies>
>> > <dependency>
>> > <groupId>org.codehaus.groovy</groupId>
>> > <artifactId>groovy-eclipse-compiler</artifactId>
>> > <version>2.5.1</version>
>> > </dependency>
>> > <dependency>
>> > <groupId>org.codehaus.groovy</groupId>
>> > <artifactId>groovy</artifactId>
>> > <version>1.8.0</version>
>> > </dependency>
>> > </dependencies>
>> > </plugin>
>> >
>> > <plugin>
>> > <groupId>org.codehaus.mojo</groupId>
>> > <artifactId>build-helper-maven-plugin</artifactId>
>> > <version>1.5</version>
>> > <executions>
>> > <execution>
>> > <id>add-source</id>
>> > <phase>generate-sources</phase>
>> > <goals>
>> > <goal>add-source</goal>
>> > </goals>
>> > <configuration>
>> > <sources>
>> > <source>src/main/groovy</source>
>> > </sources>
>> > </configuration>
>> > </execution>
>> > <execution>
>> > <id>add-test-source</id>
>> > <phase>generate-test-sources</phase>
>> > <goals>
>> > <goal>add-test-source</goal>
>> > </goals>
>> > <configuration>
>> > <sources>
>> > <source>src/test/groovy</source>
>> > </sources>
>> > </configuration>
>> > </execution>
>> > </executions>
>> > </plugin>
>> >
>> > <pluginRepositories>
>> > <pluginRepository>
>> > <id>codehaus.org</id>
>> > <url>http://repository.codehaus.org</url>
>> > </pluginRepository>
>> > </pluginRepositories>
>> >
>> > I get this exception when compiling:
>> >
>> > java.lang.NoSuchMethodError:
>> >
>> > org.codehaus.groovy.classgen.InnerClassCompletionVisitor.<init>(Lorg/codehaus/groovy/control/CompilationUnit;Lorg/codehaus/groovy/control/SourceUnit;)V
>> >        at
>> >
>> > org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:213)
>> > - --
>> > Regards,
>> >
>> > Johann Burkard
>> >
>> > <http://johannburkard.de>
>> > <http://twitter.com/johannburkard>
>> > -----BEGIN PGP SIGNATURE-----
>> > Version: GnuPG v1.4.10 (GNU/Linux)
>> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>> >
>> > iEYEARECAAYFAk3c3o0ACgkQgOXEH1Six2FhrQCbB87h7P+rm+l887nhYm3pLKjf
>> > p6YAoIvt38dFjAZK5d2JPYiEEvk/R+ch
>> > =z8Rg
>> > -----END PGP SIGNATURE-----
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe from this list, please visit:
>> >
>> >    http://xircles.codehaus.org/manage_email
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: groovy + maven

Johann Burkard
In reply to this post by Johann Burkard
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I've been using this configuration for a while now and it works:

<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.6</source>
<target>1.6</target>
<compilerId>groovy-eclipse-compiler</compilerId>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>0.5.1-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/groovy</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-test-source</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/test/groovy</source>
</sources>
</configuration>
</execution>
</executions>

But I think this configuration was suggested by Andrew and it still
doesn't work:

<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<compilerId>groovy-eclipse-compiler</compilerId>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.5.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy</artifactId>
<version>1.8.0</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/groovy</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-test-source</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/test/groovy</source>
</sources>
</configuration>
</execution>
</executions>

The error I get is:

Internal compiler error: java.lang.NoSuchMethodError:
org.codehaus.groovy.classgen.InnerClassCompletionVisitor.<init>(Lorg/codehaus/groovy/control/CompilationUnit;Lorg/codehaus/groovy/control/SourceUnit;)V
at
org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:213)

Has there been an update to the groovy-eclipse-compiler? It's not in
Codehaus' repo.

BTW: Where was that 0.5.1-SNAPSHOT hosted? I deleted the directory by
accident in my local repository and now I can't seem to find a
repository that has it.
- --
Regards,

Johann Burkard

<http://johannburkard.de>
<http://twitter.com/johannburkard>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3ujrMACgkQgOXEH1Six2Fn9ACfY5O2LLYmVbM49idUg0FCeWxp
AUMAoIqFh5EkgQFQ8VgqUCkHcQjPcexl
=cQ5Q
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

0x54A2C761.asc (1K) Download Attachment
0x54A2C761.asc.sig (100 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: groovy + maven

Travis Schneeberger
The compiler is now out on maven central:

http://mvnrepository.com/artifact/org.codehaus.groovy/groovy-eclipse-compiler.

There is also a maven archetype showing the basic use of the compiler but it is not installed in central yet.  This should get you going with a working config.

https://svn.codehaus.org/groovy/eclipse/trunk/extras/groovy-eclipse-quickstart/

~Travis



On Tue, Jun 7, 2011 at 4:48 PM, Johann Burkard <[hidden email]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I've been using this configuration for a while now and it works:

<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.6</source>
<target>1.6</target>
<compilerId>groovy-eclipse-compiler</compilerId>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>0.5.1-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/groovy</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-test-source</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/test/groovy</source>
</sources>
</configuration>
</execution>
</executions>

But I think this configuration was suggested by Andrew and it still
doesn't work:

<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<compilerId>groovy-eclipse-compiler</compilerId>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.5.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy</artifactId>
<version>1.8.0</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/groovy</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-test-source</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/test/groovy</source>
</sources>
</configuration>
</execution>
</executions>

The error I get is:

Internal compiler error: java.lang.NoSuchMethodError:
org.codehaus.groovy.classgen.InnerClassCompletionVisitor.<init>(Lorg/codehaus/groovy/control/CompilationUnit;Lorg/codehaus/groovy/control/SourceUnit;)V
at
org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:213)

Has there been an update to the groovy-eclipse-compiler? It's not in
Codehaus' repo.

BTW: Where was that 0.5.1-SNAPSHOT hosted? I deleted the directory by
accident in my local repository and now I can't seem to find a
repository that has it.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3ujrMACgkQgOXEH1Six2Fn9ACfY5O2LLYmVbM49idUg0FCeWxp
AUMAoIqFh5EkgQFQ8VgqUCkHcQjPcexl
=cQ5Q
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: groovy + maven

Andrew Eisenberg
In reply to this post by Johann Burkard
Hi Johann and all,

Apologies for the confusion with version numbers, but you should be
using 2.5.1-M3 right now.  The most up to date information will always
be here:

http://groovy.codehaus.org/Groovy-Eclipse+compiler+plugin+for+Maven

It contains a sample pom snippet.  As Travis has already mentioned, he
contributed an archetype. It can be used through something like the
following command:

mvn archetype:generate \
    -DarchetypeGroupId=org.codehaus.groovy \
    -DarchetypeArtifactId=groovy-eclipse-quickstart \
    -DarchetypeVersion=2.5.1-M3-SNAPSHOT \
    -DgroupId=foo \
    -DartifactId=bar \
    -Dversion=1 \
    -DinteractiveMode=false \
    -DarchetypeRepository=https://nexus.codehaus.org/content/repositories/snapshots/

We'll be releasing the final version of the compiler along with
Groovy-Eclipse 2.5.1 at the end of June.

On Tue, Jun 7, 2011 at 10:48 AM, Johann Burkard <[hidden email]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I've been using this configuration for a while now and it works:
>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>2.3.2</version>
> <configuration>
> <encoding>UTF-8</encoding>
> <source>1.6</source>
> <target>1.6</target>
> <compilerId>groovy-eclipse-compiler</compilerId>
> </configuration>
> <dependencies>
> <dependency>
> <groupId>org.codehaus.groovy</groupId>
> <artifactId>groovy-eclipse-compiler</artifactId>
> <version>0.5.1-SNAPSHOT</version>
> </dependency>
> </dependencies>
> </plugin>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>build-helper-maven-plugin</artifactId>
> <version>1.5</version>
> <executions>
> <execution>
> <id>add-source</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>add-source</goal>
> </goals>
> <configuration>
> <sources>
> <source>src/main/groovy</source>
> </sources>
> </configuration>
> </execution>
> <execution>
> <id>add-test-source</id>
> <phase>generate-test-sources</phase>
> <goals>
> <goal>add-test-source</goal>
> </goals>
> <configuration>
> <sources>
> <source>src/test/groovy</source>
> </sources>
> </configuration>
> </execution>
> </executions>
>
> But I think this configuration was suggested by Andrew and it still
> doesn't work:
>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>2.3.1</version>
> <configuration>
> <compilerId>groovy-eclipse-compiler</compilerId>
> </configuration>
> <dependencies>
> <dependency>
> <groupId>org.codehaus.groovy</groupId>
> <artifactId>groovy-eclipse-compiler</artifactId>
> <version>2.5.1</version>
> </dependency>
> <dependency>
> <groupId>org.codehaus.groovy</groupId>
> <artifactId>groovy</artifactId>
> <version>1.8.0</version>
> </dependency>
> </dependencies>
> </plugin>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>build-helper-maven-plugin</artifactId>
> <version>1.5</version>
> <executions>
> <execution>
> <id>add-source</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>add-source</goal>
> </goals>
> <configuration>
> <sources>
> <source>src/main/groovy</source>
> </sources>
> </configuration>
> </execution>
> <execution>
> <id>add-test-source</id>
> <phase>generate-test-sources</phase>
> <goals>
> <goal>add-test-source</goal>
> </goals>
> <configuration>
> <sources>
> <source>src/test/groovy</source>
> </sources>
> </configuration>
> </execution>
> </executions>
>
> The error I get is:
>
> Internal compiler error: java.lang.NoSuchMethodError:
> org.codehaus.groovy.classgen.InnerClassCompletionVisitor.<init>(Lorg/codehaus/groovy/control/CompilationUnit;Lorg/codehaus/groovy/control/SourceUnit;)V
> at
> org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:213)
>
> Has there been an update to the groovy-eclipse-compiler? It's not in
> Codehaus' repo.
>
> BTW: Where was that 0.5.1-SNAPSHOT hosted? I deleted the directory by
> accident in my local repository and now I can't seem to find a
> repository that has it.
> - --
> Regards,
>
> Johann Burkard
>
> <http://johannburkard.de>
> <http://twitter.com/johannburkard>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk3ujrMACgkQgOXEH1Six2Fn9ACfY5O2LLYmVbM49idUg0FCeWxp
> AUMAoIqFh5EkgQFQ8VgqUCkHcQjPcexl
> =cQ5Q
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: groovy + maven

Travis Schneeberger
Andrew, et al,

Speaking of the upcoming release does anyone know if this compiler is compatible with eclipse + m2eclipse setup?  I ran into some strangeness a when attempting to import a project using this compiler into eclipse using the m2eclipse plugin.  This was due to the fact that m2eclipse expects the project to be using javac.

So I guess I'm wondering what kind of testing has been done and what versions of eclipse/m2eclipse this appears to be working on. 

eclipse 3.6/3.7
m2eclipse .12.1/.13

Will we need to install any other special eclipse plugins/maven plugins to make things work with an eclipse + m2eclipse setup?

Thanks,
Travis

On Tue, Jun 7, 2011 at 8:53 PM, Andrew Eisenberg <[hidden email]> wrote:
Hi Johann and all,

Apologies for the confusion with version numbers, but you should be
using 2.5.1-M3 right now.  The most up to date information will always
be here:

http://groovy.codehaus.org/Groovy-Eclipse+compiler+plugin+for+Maven

It contains a sample pom snippet.  As Travis has already mentioned, he
contributed an archetype. It can be used through something like the
following command:

mvn archetype:generate \
   -DarchetypeGroupId=org.codehaus.groovy \
   -DarchetypeArtifactId=groovy-eclipse-quickstart \
   -DarchetypeVersion=2.5.1-M3-SNAPSHOT \
   -DgroupId=foo \
   -DartifactId=bar \
   -Dversion=1 \
   -DinteractiveMode=false \
   -DarchetypeRepository=https://nexus.codehaus.org/content/repositories/snapshots/

We'll be releasing the final version of the compiler along with
Groovy-Eclipse 2.5.1 at the end of June.

On Tue, Jun 7, 2011 at 10:48 AM, Johann Burkard <[hidden email]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I've been using this configuration for a while now and it works:
>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>2.3.2</version>
> <configuration>
> <encoding>UTF-8</encoding>
> <source>1.6</source>
> <target>1.6</target>
> <compilerId>groovy-eclipse-compiler</compilerId>
> </configuration>
> <dependencies>
> <dependency>
> <groupId>org.codehaus.groovy</groupId>
> <artifactId>groovy-eclipse-compiler</artifactId>
> <version>0.5.1-SNAPSHOT</version>
> </dependency>
> </dependencies>
> </plugin>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>build-helper-maven-plugin</artifactId>
> <version>1.5</version>
> <executions>
> <execution>
> <id>add-source</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>add-source</goal>
> </goals>
> <configuration>
> <sources>
> <source>src/main/groovy</source>
> </sources>
> </configuration>
> </execution>
> <execution>
> <id>add-test-source</id>
> <phase>generate-test-sources</phase>
> <goals>
> <goal>add-test-source</goal>
> </goals>
> <configuration>
> <sources>
> <source>src/test/groovy</source>
> </sources>
> </configuration>
> </execution>
> </executions>
>
> But I think this configuration was suggested by Andrew and it still
> doesn't work:
>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>2.3.1</version>
> <configuration>
> <compilerId>groovy-eclipse-compiler</compilerId>
> </configuration>
> <dependencies>
> <dependency>
> <groupId>org.codehaus.groovy</groupId>
> <artifactId>groovy-eclipse-compiler</artifactId>
> <version>2.5.1</version>
> </dependency>
> <dependency>
> <groupId>org.codehaus.groovy</groupId>
> <artifactId>groovy</artifactId>
> <version>1.8.0</version>
> </dependency>
> </dependencies>
> </plugin>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>build-helper-maven-plugin</artifactId>
> <version>1.5</version>
> <executions>
> <execution>
> <id>add-source</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>add-source</goal>
> </goals>
> <configuration>
> <sources>
> <source>src/main/groovy</source>
> </sources>
> </configuration>
> </execution>
> <execution>
> <id>add-test-source</id>
> <phase>generate-test-sources</phase>
> <goals>
> <goal>add-test-source</goal>
> </goals>
> <configuration>
> <sources>
> <source>src/test/groovy</source>
> </sources>
> </configuration>
> </execution>
> </executions>
>
> The error I get is:
>
> Internal compiler error: java.lang.NoSuchMethodError:
> org.codehaus.groovy.classgen.InnerClassCompletionVisitor.<init>(Lorg/codehaus/groovy/control/CompilationUnit;Lorg/codehaus/groovy/control/SourceUnit;)V
> at
> org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:213)
>
> Has there been an update to the groovy-eclipse-compiler? It's not in
> Codehaus' repo.
>
> BTW: Where was that 0.5.1-SNAPSHOT hosted? I deleted the directory by
> accident in my local repository and now I can't seem to find a
> repository that has it.
> - --
> Regards,
>
> Johann Burkard
>
> <http://johannburkard.de>
> <http://twitter.com/johannburkard>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk3ujrMACgkQgOXEH1Six2Fn9ACfY5O2LLYmVbM49idUg0FCeWxp
> AUMAoIqFh5EkgQFQ8VgqUCkHcQjPcexl
> =cQ5Q
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: groovy + maven

Andrew Eisenberg
As specified here,
http://groovy.codehaus.org/Groovy-Eclipse+compiler+plugin+for+Maven#Groovy-EclipsecompilerpluginforMaven-HowtousethecompilerpluginSettingupthePOM

You will need to explicitly add the groovy nature to the imported
eclipse project.  You will need to do this until we have a proper
project configurator set up for groovy-eclipse.  This has worked for
me in the past, but i haven't done extensive testing with it using the
most recent version.

I'm not sure what you mean by m2eclipse expects that javac is being
used.  Do you remember what exactly the problem was?  m2eclipse should
just be calling maven to compile the project.

On Wed, Jun 8, 2011 at 3:43 AM, Travis Schneeberger
<[hidden email]> wrote:

> Andrew, et al,
> Speaking of the upcoming release does anyone know if this compiler is
> compatible with eclipse + m2eclipse setup?  I ran into some strangeness a
> when attempting to import a project using this compiler into eclipse using
> the m2eclipse plugin.  This was due to the fact that m2eclipse expects the
> project to be using javac.
> So I guess I'm wondering what kind of testing has been done and what
> versions of eclipse/m2eclipse this appears to be working on.
> eclipse 3.6/3.7
> m2eclipse .12.1/.13
> Will we need to install any other special eclipse plugins/maven plugins to
> make things work with an eclipse + m2eclipse setup?
> Thanks,
> Travis
>
> On Tue, Jun 7, 2011 at 8:53 PM, Andrew Eisenberg <[hidden email]>
> wrote:
>>
>> Hi Johann and all,
>>
>> Apologies for the confusion with version numbers, but you should be
>> using 2.5.1-M3 right now.  The most up to date information will always
>> be here:
>>
>> http://groovy.codehaus.org/Groovy-Eclipse+compiler+plugin+for+Maven
>>
>> It contains a sample pom snippet.  As Travis has already mentioned, he
>> contributed an archetype. It can be used through something like the
>> following command:
>>
>> mvn archetype:generate \
>>    -DarchetypeGroupId=org.codehaus.groovy \
>>    -DarchetypeArtifactId=groovy-eclipse-quickstart \
>>    -DarchetypeVersion=2.5.1-M3-SNAPSHOT \
>>    -DgroupId=foo \
>>    -DartifactId=bar \
>>    -Dversion=1 \
>>    -DinteractiveMode=false \
>>
>>  -DarchetypeRepository=https://nexus.codehaus.org/content/repositories/snapshots/
>>
>> We'll be releasing the final version of the compiler along with
>> Groovy-Eclipse 2.5.1 at the end of June.
>>
>> On Tue, Jun 7, 2011 at 10:48 AM, Johann Burkard <[hidden email]>
>> wrote:
>> > -----BEGIN PGP SIGNED MESSAGE-----
>> > Hash: SHA1
>> >
>> > Hello,
>> >
>> > I've been using this configuration for a while now and it works:
>> >
>> > <groupId>org.apache.maven.plugins</groupId>
>> > <artifactId>maven-compiler-plugin</artifactId>
>> > <version>2.3.2</version>
>> > <configuration>
>> > <encoding>UTF-8</encoding>
>> > <source>1.6</source>
>> > <target>1.6</target>
>> > <compilerId>groovy-eclipse-compiler</compilerId>
>> > </configuration>
>> > <dependencies>
>> > <dependency>
>> > <groupId>org.codehaus.groovy</groupId>
>> > <artifactId>groovy-eclipse-compiler</artifactId>
>> > <version>0.5.1-SNAPSHOT</version>
>> > </dependency>
>> > </dependencies>
>> > </plugin>
>> > <plugin>
>> > <groupId>org.codehaus.mojo</groupId>
>> > <artifactId>build-helper-maven-plugin</artifactId>
>> > <version>1.5</version>
>> > <executions>
>> > <execution>
>> > <id>add-source</id>
>> > <phase>generate-sources</phase>
>> > <goals>
>> > <goal>add-source</goal>
>> > </goals>
>> > <configuration>
>> > <sources>
>> > <source>src/main/groovy</source>
>> > </sources>
>> > </configuration>
>> > </execution>
>> > <execution>
>> > <id>add-test-source</id>
>> > <phase>generate-test-sources</phase>
>> > <goals>
>> > <goal>add-test-source</goal>
>> > </goals>
>> > <configuration>
>> > <sources>
>> > <source>src/test/groovy</source>
>> > </sources>
>> > </configuration>
>> > </execution>
>> > </executions>
>> >
>> > But I think this configuration was suggested by Andrew and it still
>> > doesn't work:
>> >
>> > <artifactId>maven-compiler-plugin</artifactId>
>> > <version>2.3.1</version>
>> > <configuration>
>> > <compilerId>groovy-eclipse-compiler</compilerId>
>> > </configuration>
>> > <dependencies>
>> > <dependency>
>> > <groupId>org.codehaus.groovy</groupId>
>> > <artifactId>groovy-eclipse-compiler</artifactId>
>> > <version>2.5.1</version>
>> > </dependency>
>> > <dependency>
>> > <groupId>org.codehaus.groovy</groupId>
>> > <artifactId>groovy</artifactId>
>> > <version>1.8.0</version>
>> > </dependency>
>> > </dependencies>
>> > </plugin>
>> > <plugin>
>> > <groupId>org.codehaus.mojo</groupId>
>> > <artifactId>build-helper-maven-plugin</artifactId>
>> > <version>1.5</version>
>> > <executions>
>> > <execution>
>> > <id>add-source</id>
>> > <phase>generate-sources</phase>
>> > <goals>
>> > <goal>add-source</goal>
>> > </goals>
>> > <configuration>
>> > <sources>
>> > <source>src/main/groovy</source>
>> > </sources>
>> > </configuration>
>> > </execution>
>> > <execution>
>> > <id>add-test-source</id>
>> > <phase>generate-test-sources</phase>
>> > <goals>
>> > <goal>add-test-source</goal>
>> > </goals>
>> > <configuration>
>> > <sources>
>> > <source>src/test/groovy</source>
>> > </sources>
>> > </configuration>
>> > </execution>
>> > </executions>
>> >
>> > The error I get is:
>> >
>> > Internal compiler error: java.lang.NoSuchMethodError:
>> >
>> > org.codehaus.groovy.classgen.InnerClassCompletionVisitor.<init>(Lorg/codehaus/groovy/control/CompilationUnit;Lorg/codehaus/groovy/control/SourceUnit;)V
>> > at
>> >
>> > org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:213)
>> >
>> > Has there been an update to the groovy-eclipse-compiler? It's not in
>> > Codehaus' repo.
>> >
>> > BTW: Where was that 0.5.1-SNAPSHOT hosted? I deleted the directory by
>> > accident in my local repository and now I can't seem to find a
>> > repository that has it.
>> > - --
>> > Regards,
>> >
>> > Johann Burkard
>> >
>> > <http://johannburkard.de>
>> > <http://twitter.com/johannburkard>
>> > -----BEGIN PGP SIGNATURE-----
>> > Version: GnuPG v1.4.10 (GNU/Linux)
>> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>> >
>> > iEYEARECAAYFAk3ujrMACgkQgOXEH1Six2Fn9ACfY5O2LLYmVbM49idUg0FCeWxp
>> > AUMAoIqFh5EkgQFQ8VgqUCkHcQjPcexl
>> > =cQ5Q
>> > -----END PGP SIGNATURE-----
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe from this list, please visit:
>> >
>> >    http://xircles.codehaus.org/manage_email
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: groovy + maven

Travis Schneeberger
When I tried importing a project into eclipse 3.6 through m2eclipse .12.1, the project error'd out halfway through the import process with an m2eclipse error.  I assuming (maybe incorrectly) that it's related to the following thread:  

http://dev.eclipse.org/mhonarc/lists/m2e-users/msg00615.html

I can't remember off the top of my head what the error was.  Maybe it's because I didn't have the groovy nature thing setup in the pom?  I'll try to find some time to do some more testing.



On Wed, Jun 8, 2011 at 3:00 PM, Andrew Eisenberg <[hidden email]> wrote:
As specified here,
http://groovy.codehaus.org/Groovy-Eclipse+compiler+plugin+for+Maven#Groovy-EclipsecompilerpluginforMaven-HowtousethecompilerpluginSettingupthePOM

You will need to explicitly add the groovy nature to the imported
eclipse project.  You will need to do this until we have a proper
project configurator set up for groovy-eclipse.  This has worked for
me in the past, but i haven't done extensive testing with it using the
most recent version.

I'm not sure what you mean by m2eclipse expects that javac is being
used.  Do you remember what exactly the problem was?  m2eclipse should
just be calling maven to compile the project.

On Wed, Jun 8, 2011 at 3:43 AM, Travis Schneeberger
<[hidden email]> wrote:
> Andrew, et al,
> Speaking of the upcoming release does anyone know if this compiler is
> compatible with eclipse + m2eclipse setup?  I ran into some strangeness a
> when attempting to import a project using this compiler into eclipse using
> the m2eclipse plugin.  This was due to the fact that m2eclipse expects the
> project to be using javac.
> So I guess I'm wondering what kind of testing has been done and what
> versions of eclipse/m2eclipse this appears to be working on.
> eclipse 3.6/3.7
> m2eclipse .12.1/.13
> Will we need to install any other special eclipse plugins/maven plugins to
> make things work with an eclipse + m2eclipse setup?
> Thanks,
> Travis
>
> On Tue, Jun 7, 2011 at 8:53 PM, Andrew Eisenberg <[hidden email]>
> wrote:
>>
>> Hi Johann and all,
>>
>> Apologies for the confusion with version numbers, but you should be
>> using 2.5.1-M3 right now.  The most up to date information will always
>> be here:
>>
>> http://groovy.codehaus.org/Groovy-Eclipse+compiler+plugin+for+Maven
>>
>> It contains a sample pom snippet.  As Travis has already mentioned, he
>> contributed an archetype. It can be used through something like the
>> following command:
>>
>> mvn archetype:generate \
>>    -DarchetypeGroupId=org.codehaus.groovy \
>>    -DarchetypeArtifactId=groovy-eclipse-quickstart \
>>    -DarchetypeVersion=2.5.1-M3-SNAPSHOT \
>>    -DgroupId=foo \
>>    -DartifactId=bar \
>>    -Dversion=1 \
>>    -DinteractiveMode=false \
>>
>>  -DarchetypeRepository=https://nexus.codehaus.org/content/repositories/snapshots/
>>
>> We'll be releasing the final version of the compiler along with
>> Groovy-Eclipse 2.5.1 at the end of June.
>>
>> On Tue, Jun 7, 2011 at 10:48 AM, Johann Burkard <[hidden email]>
>> wrote:
>> > -----BEGIN PGP SIGNED MESSAGE-----
>> > Hash: SHA1
>> >
>> > Hello,
>> >
>> > I've been using this configuration for a while now and it works:
>> >
>> > <groupId>org.apache.maven.plugins</groupId>
>> > <artifactId>maven-compiler-plugin</artifactId>
>> > <version>2.3.2</version>
>> > <configuration>
>> > <encoding>UTF-8</encoding>
>> > <source>1.6</source>
>> > <target>1.6</target>
>> > <compilerId>groovy-eclipse-compiler</compilerId>
>> > </configuration>
>> > <dependencies>
>> > <dependency>
>> > <groupId>org.codehaus.groovy</groupId>
>> > <artifactId>groovy-eclipse-compiler</artifactId>
>> > <version>0.5.1-SNAPSHOT</version>
>> > </dependency>
>> > </dependencies>
>> > </plugin>
>> > <plugin>
>> > <groupId>org.codehaus.mojo</groupId>
>> > <artifactId>build-helper-maven-plugin</artifactId>
>> > <version>1.5</version>
>> > <executions>
>> > <execution>
>> > <id>add-source</id>
>> > <phase>generate-sources</phase>
>> > <goals>
>> > <goal>add-source</goal>
>> > </goals>
>> > <configuration>
>> > <sources>
>> > <source>src/main/groovy</source>
>> > </sources>
>> > </configuration>
>> > </execution>
>> > <execution>
>> > <id>add-test-source</id>
>> > <phase>generate-test-sources</phase>
>> > <goals>
>> > <goal>add-test-source</goal>
>> > </goals>
>> > <configuration>
>> > <sources>
>> > <source>src/test/groovy</source>
>> > </sources>
>> > </configuration>
>> > </execution>
>> > </executions>
>> >
>> > But I think this configuration was suggested by Andrew and it still
>> > doesn't work:
>> >
>> > <artifactId>maven-compiler-plugin</artifactId>
>> > <version>2.3.1</version>
>> > <configuration>
>> > <compilerId>groovy-eclipse-compiler</compilerId>
>> > </configuration>
>> > <dependencies>
>> > <dependency>
>> > <groupId>org.codehaus.groovy</groupId>
>> > <artifactId>groovy-eclipse-compiler</artifactId>
>> > <version>2.5.1</version>
>> > </dependency>
>> > <dependency>
>> > <groupId>org.codehaus.groovy</groupId>
>> > <artifactId>groovy</artifactId>
>> > <version>1.8.0</version>
>> > </dependency>
>> > </dependencies>
>> > </plugin>
>> > <plugin>
>> > <groupId>org.codehaus.mojo</groupId>
>> > <artifactId>build-helper-maven-plugin</artifactId>
>> > <version>1.5</version>
>> > <executions>
>> > <execution>
>> > <id>add-source</id>
>> > <phase>generate-sources</phase>
>> > <goals>
>> > <goal>add-source</goal>
>> > </goals>
>> > <configuration>
>> > <sources>
>> > <source>src/main/groovy</source>
>> > </sources>
>> > </configuration>
>> > </execution>
>> > <execution>
>> > <id>add-test-source</id>
>> > <phase>generate-test-sources</phase>
>> > <goals>
>> > <goal>add-test-source</goal>
>> > </goals>
>> > <configuration>
>> > <sources>
>> > <source>src/test/groovy</source>
>> > </sources>
>> > </configuration>
>> > </execution>
>> > </executions>
>> >
>> > The error I get is:
>> >
>> > Internal compiler error: java.lang.NoSuchMethodError:
>> >
>> > org.codehaus.groovy.classgen.InnerClassCompletionVisitor.<init>(Lorg/codehaus/groovy/control/CompilationUnit;Lorg/codehaus/groovy/control/SourceUnit;)V
>> > at
>> >
>> > org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:213)
>> >
>> > Has there been an update to the groovy-eclipse-compiler? It's not in
>> > Codehaus' repo.
>> >
>> > BTW: Where was that 0.5.1-SNAPSHOT hosted? I deleted the directory by
>> > accident in my local repository and now I can't seem to find a
>> > repository that has it.
>> > - --
>> > Regards,
>> >
>> > Johann Burkard
>> >
>> > <http://johannburkard.de>
>> > <http://twitter.com/johannburkard>
>> > -----BEGIN PGP SIGNATURE-----
>> > Version: GnuPG v1.4.10 (GNU/Linux)
>> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>> >
>> > iEYEARECAAYFAk3ujrMACgkQgOXEH1Six2Fn9ACfY5O2LLYmVbM49idUg0FCeWxp
>> > AUMAoIqFh5EkgQFQ8VgqUCkHcQjPcexl
>> > =cQ5Q
>> > -----END PGP SIGNATURE-----
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe from this list, please visit:
>> >
>> >    http://xircles.codehaus.org/manage_email
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: groovy + maven

Andrew Eisenberg
0.13 has broken backwards compatibility with 0.12.  The current
groovy-eclipse maven integration only works for 0.12.  Furthermore, it
also only works for gmaven.  The thread that you are looking at is
regarding a not-yet-released version of the maven integration that
targets 0.13 (but still only for gmaven).  There is a bug in 0.13 that
is preventing the groovy nature from being applied.

So, I'd still recommend checking my first assumption and explicitly
adding the groovy nature through the pom.


On Wed, Jun 8, 2011 at 10:07 AM, Travis Schneeberger
<[hidden email]> wrote:

> When I tried importing a project into eclipse 3.6 through m2eclipse .12.1,
> the project error'd out halfway through the import process with an m2eclipse
> error.  I assuming (maybe incorrectly) that it's related to the following
> thread:
>
> http://dev.eclipse.org/mhonarc/lists/m2e-users/msg00615.html
> I can't remember off the top of my head what the error was.  Maybe it's
> because I didn't have the groovy nature thing setup in the pom?  I'll try to
> find some time to do some more testing.
>
>
> On Wed, Jun 8, 2011 at 3:00 PM, Andrew Eisenberg <[hidden email]>
> wrote:
>>
>> As specified here,
>>
>> http://groovy.codehaus.org/Groovy-Eclipse+compiler+plugin+for+Maven#Groovy-EclipsecompilerpluginforMaven-HowtousethecompilerpluginSettingupthePOM
>>
>> You will need to explicitly add the groovy nature to the imported
>> eclipse project.  You will need to do this until we have a proper
>> project configurator set up for groovy-eclipse.  This has worked for
>> me in the past, but i haven't done extensive testing with it using the
>> most recent version.
>>
>> I'm not sure what you mean by m2eclipse expects that javac is being
>> used.  Do you remember what exactly the problem was?  m2eclipse should
>> just be calling maven to compile the project.
>>
>> On Wed, Jun 8, 2011 at 3:43 AM, Travis Schneeberger
>> <[hidden email]> wrote:
>> > Andrew, et al,
>> > Speaking of the upcoming release does anyone know if this compiler is
>> > compatible with eclipse + m2eclipse setup?  I ran into some strangeness
>> > a
>> > when attempting to import a project using this compiler into eclipse
>> > using
>> > the m2eclipse plugin.  This was due to the fact that m2eclipse expects
>> > the
>> > project to be using javac.
>> > So I guess I'm wondering what kind of testing has been done and what
>> > versions of eclipse/m2eclipse this appears to be working on.
>> > eclipse 3.6/3.7
>> > m2eclipse .12.1/.13
>> > Will we need to install any other special eclipse plugins/maven plugins
>> > to
>> > make things work with an eclipse + m2eclipse setup?
>> > Thanks,
>> > Travis
>> >
>> > On Tue, Jun 7, 2011 at 8:53 PM, Andrew Eisenberg <[hidden email]>
>> > wrote:
>> >>
>> >> Hi Johann and all,
>> >>
>> >> Apologies for the confusion with version numbers, but you should be
>> >> using 2.5.1-M3 right now.  The most up to date information will always
>> >> be here:
>> >>
>> >> http://groovy.codehaus.org/Groovy-Eclipse+compiler+plugin+for+Maven
>> >>
>> >> It contains a sample pom snippet.  As Travis has already mentioned, he
>> >> contributed an archetype. It can be used through something like the
>> >> following command:
>> >>
>> >> mvn archetype:generate \
>> >>    -DarchetypeGroupId=org.codehaus.groovy \
>> >>    -DarchetypeArtifactId=groovy-eclipse-quickstart \
>> >>    -DarchetypeVersion=2.5.1-M3-SNAPSHOT \
>> >>    -DgroupId=foo \
>> >>    -DartifactId=bar \
>> >>    -Dversion=1 \
>> >>    -DinteractiveMode=false \
>> >>
>> >>
>> >>  -DarchetypeRepository=https://nexus.codehaus.org/content/repositories/snapshots/
>> >>
>> >> We'll be releasing the final version of the compiler along with
>> >> Groovy-Eclipse 2.5.1 at the end of June.
>> >>
>> >> On Tue, Jun 7, 2011 at 10:48 AM, Johann Burkard
>> >> <[hidden email]>
>> >> wrote:
>> >> > -----BEGIN PGP SIGNED MESSAGE-----
>> >> > Hash: SHA1
>> >> >
>> >> > Hello,
>> >> >
>> >> > I've been using this configuration for a while now and it works:
>> >> >
>> >> > <groupId>org.apache.maven.plugins</groupId>
>> >> > <artifactId>maven-compiler-plugin</artifactId>
>> >> > <version>2.3.2</version>
>> >> > <configuration>
>> >> > <encoding>UTF-8</encoding>
>> >> > <source>1.6</source>
>> >> > <target>1.6</target>
>> >> > <compilerId>groovy-eclipse-compiler</compilerId>
>> >> > </configuration>
>> >> > <dependencies>
>> >> > <dependency>
>> >> > <groupId>org.codehaus.groovy</groupId>
>> >> > <artifactId>groovy-eclipse-compiler</artifactId>
>> >> > <version>0.5.1-SNAPSHOT</version>
>> >> > </dependency>
>> >> > </dependencies>
>> >> > </plugin>
>> >> > <plugin>
>> >> > <groupId>org.codehaus.mojo</groupId>
>> >> > <artifactId>build-helper-maven-plugin</artifactId>
>> >> > <version>1.5</version>
>> >> > <executions>
>> >> > <execution>
>> >> > <id>add-source</id>
>> >> > <phase>generate-sources</phase>
>> >> > <goals>
>> >> > <goal>add-source</goal>
>> >> > </goals>
>> >> > <configuration>
>> >> > <sources>
>> >> > <source>src/main/groovy</source>
>> >> > </sources>
>> >> > </configuration>
>> >> > </execution>
>> >> > <execution>
>> >> > <id>add-test-source</id>
>> >> > <phase>generate-test-sources</phase>
>> >> > <goals>
>> >> > <goal>add-test-source</goal>
>> >> > </goals>
>> >> > <configuration>
>> >> > <sources>
>> >> > <source>src/test/groovy</source>
>> >> > </sources>
>> >> > </configuration>
>> >> > </execution>
>> >> > </executions>
>> >> >
>> >> > But I think this configuration was suggested by Andrew and it still
>> >> > doesn't work:
>> >> >
>> >> > <artifactId>maven-compiler-plugin</artifactId>
>> >> > <version>2.3.1</version>
>> >> > <configuration>
>> >> > <compilerId>groovy-eclipse-compiler</compilerId>
>> >> > </configuration>
>> >> > <dependencies>
>> >> > <dependency>
>> >> > <groupId>org.codehaus.groovy</groupId>
>> >> > <artifactId>groovy-eclipse-compiler</artifactId>
>> >> > <version>2.5.1</version>
>> >> > </dependency>
>> >> > <dependency>
>> >> > <groupId>org.codehaus.groovy</groupId>
>> >> > <artifactId>groovy</artifactId>
>> >> > <version>1.8.0</version>
>> >> > </dependency>
>> >> > </dependencies>
>> >> > </plugin>
>> >> > <plugin>
>> >> > <groupId>org.codehaus.mojo</groupId>
>> >> > <artifactId>build-helper-maven-plugin</artifactId>
>> >> > <version>1.5</version>
>> >> > <executions>
>> >> > <execution>
>> >> > <id>add-source</id>
>> >> > <phase>generate-sources</phase>
>> >> > <goals>
>> >> > <goal>add-source</goal>
>> >> > </goals>
>> >> > <configuration>
>> >> > <sources>
>> >> > <source>src/main/groovy</source>
>> >> > </sources>
>> >> > </configuration>
>> >> > </execution>
>> >> > <execution>
>> >> > <id>add-test-source</id>
>> >> > <phase>generate-test-sources</phase>
>> >> > <goals>
>> >> > <goal>add-test-source</goal>
>> >> > </goals>
>> >> > <configuration>
>> >> > <sources>
>> >> > <source>src/test/groovy</source>
>> >> > </sources>
>> >> > </configuration>
>> >> > </execution>
>> >> > </executions>
>> >> >
>> >> > The error I get is:
>> >> >
>> >> > Internal compiler error: java.lang.NoSuchMethodError:
>> >> >
>> >> >
>> >> > org.codehaus.groovy.classgen.InnerClassCompletionVisitor.<init>(Lorg/codehaus/groovy/control/CompilationUnit;Lorg/codehaus/groovy/control/SourceUnit;)V
>> >> > at
>> >> >
>> >> >
>> >> > org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:213)
>> >> >
>> >> > Has there been an update to the groovy-eclipse-compiler? It's not in
>> >> > Codehaus' repo.
>> >> >
>> >> > BTW: Where was that 0.5.1-SNAPSHOT hosted? I deleted the directory by
>> >> > accident in my local repository and now I can't seem to find a
>> >> > repository that has it.
>> >> > - --
>> >> > Regards,
>> >> >
>> >> > Johann Burkard
>> >> >
>> >> > <http://johannburkard.de>
>> >> > <http://twitter.com/johannburkard>
>> >> > -----BEGIN PGP SIGNATURE-----
>> >> > Version: GnuPG v1.4.10 (GNU/Linux)
>> >> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>> >> >
>> >> > iEYEARECAAYFAk3ujrMACgkQgOXEH1Six2Fn9ACfY5O2LLYmVbM49idUg0FCeWxp
>> >> > AUMAoIqFh5EkgQFQ8VgqUCkHcQjPcexl
>> >> > =cQ5Q
>> >> > -----END PGP SIGNATURE-----
>> >> >
>> >> > ---------------------------------------------------------------------
>> >> > To unsubscribe from this list, please visit:
>> >> >
>> >> >    http://xircles.codehaus.org/manage_email
>> >> >
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe from this list, please visit:
>> >>
>> >>    http://xircles.codehaus.org/manage_email
>> >>
>> >>
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: groovy + maven

Johann Burkard
In reply to this post by Travis Schneeberger
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello all,

On 06/07/2011 11:02 PM, Travis Schneeberger wrote:
> The compiler is now out on maven central:
>
> http://mvnrepository.com/artifact/org.codehaus.groovy/groovy-eclipse-compiler.

thanks Travis and Andrew. I'll try to migrate five of my projects over
to the new settings this weekend and I'll let you know if I run into any
problems.
- --
Regards,

Johann Burkard

<http://johannburkard.de>
<http://twitter.com/johannburkard>
<mailto:[hidden email]>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3xH2cACgkQgOXEH1Six2EE2QCfdT2TLVsecLGvNKHTnKJdjcq0
cg0AoMWMO+SOkXzPFGYdzLx0bo4kxdyZ
=Tq5i
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

0x54A2C761.asc (1K) Download Attachment
0x54A2C761.asc.sig (100 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: groovy + maven

Andrew Eisenberg
In reply to this post by Travis Schneeberger
Travis,

I have now updated the groovy-m2eclipse integration.  It should be
working with the groovy-eclipse-compiler plugin now.  You can install
from this update site:

http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.6/

This plugin only works with 0.12 of m2eclipse (ie- the
org.maven.ide.eclipse plugins, not the org.eclipse.m2e plugins).  With
this, you will not need to explicitly add the groovy nature in your
pom, but you will still need to explicitly specify the src/main/groovy
and src/test/groovy source folders if you are using them.

Please let me know if this helps you.

On Wed, Jun 8, 2011 at 1:07 PM, Travis Schneeberger
<[hidden email]> wrote:

> When I tried importing a project into eclipse 3.6 through m2eclipse .12.1,
> the project error'd out halfway through the import process with an m2eclipse
> error.  I assuming (maybe incorrectly) that it's related to the following
> thread:
>
> http://dev.eclipse.org/mhonarc/lists/m2e-users/msg00615.html
> I can't remember off the top of my head what the error was.  Maybe it's
> because I didn't have the groovy nature thing setup in the pom?  I'll try to
> find some time to do some more testing.
>
>
> On Wed, Jun 8, 2011 at 3:00 PM, Andrew Eisenberg <[hidden email]>
> wrote:
>>
>> As specified here,
>>
>> http://groovy.codehaus.org/Groovy-Eclipse+compiler+plugin+for+Maven#Groovy-EclipsecompilerpluginforMaven-HowtousethecompilerpluginSettingupthePOM
>>
>> You will need to explicitly add the groovy nature to the imported
>> eclipse project.  You will need to do this until we have a proper
>> project configurator set up for groovy-eclipse.  This has worked for
>> me in the past, but i haven't done extensive testing with it using the
>> most recent version.
>>
>> I'm not sure what you mean by m2eclipse expects that javac is being
>> used.  Do you remember what exactly the problem was?  m2eclipse should
>> just be calling maven to compile the project.
>>
>> On Wed, Jun 8, 2011 at 3:43 AM, Travis Schneeberger
>> <[hidden email]> wrote:
>> > Andrew, et al,
>> > Speaking of the upcoming release does anyone know if this compiler is
>> > compatible with eclipse + m2eclipse setup?  I ran into some strangeness
>> > a
>> > when attempting to import a project using this compiler into eclipse
>> > using
>> > the m2eclipse plugin.  This was due to the fact that m2eclipse expects
>> > the
>> > project to be using javac.
>> > So I guess I'm wondering what kind of testing has been done and what
>> > versions of eclipse/m2eclipse this appears to be working on.
>> > eclipse 3.6/3.7
>> > m2eclipse .12.1/.13
>> > Will we need to install any other special eclipse plugins/maven plugins
>> > to
>> > make things work with an eclipse + m2eclipse setup?
>> > Thanks,
>> > Travis
>> >
>> > On Tue, Jun 7, 2011 at 8:53 PM, Andrew Eisenberg <[hidden email]>
>> > wrote:
>> >>
>> >> Hi Johann and all,
>> >>
>> >> Apologies for the confusion with version numbers, but you should be
>> >> using 2.5.1-M3 right now.  The most up to date information will always
>> >> be here:
>> >>
>> >> http://groovy.codehaus.org/Groovy-Eclipse+compiler+plugin+for+Maven
>> >>
>> >> It contains a sample pom snippet.  As Travis has already mentioned, he
>> >> contributed an archetype. It can be used through something like the
>> >> following command:
>> >>
>> >> mvn archetype:generate \
>> >>    -DarchetypeGroupId=org.codehaus.groovy \
>> >>    -DarchetypeArtifactId=groovy-eclipse-quickstart \
>> >>    -DarchetypeVersion=2.5.1-M3-SNAPSHOT \
>> >>    -DgroupId=foo \
>> >>    -DartifactId=bar \
>> >>    -Dversion=1 \
>> >>    -DinteractiveMode=false \
>> >>
>> >>
>> >>  -DarchetypeRepository=https://nexus.codehaus.org/content/repositories/snapshots/
>> >>
>> >> We'll be releasing the final version of the compiler along with
>> >> Groovy-Eclipse 2.5.1 at the end of June.
>> >>
>> >> On Tue, Jun 7, 2011 at 10:48 AM, Johann Burkard
>> >> <[hidden email]>
>> >> wrote:
>> >> > -----BEGIN PGP SIGNED MESSAGE-----
>> >> > Hash: SHA1
>> >> >
>> >> > Hello,
>> >> >
>> >> > I've been using this configuration for a while now and it works:
>> >> >
>> >> > <groupId>org.apache.maven.plugins</groupId>
>> >> > <artifactId>maven-compiler-plugin</artifactId>
>> >> > <version>2.3.2</version>
>> >> > <configuration>
>> >> > <encoding>UTF-8</encoding>
>> >> > <source>1.6</source>
>> >> > <target>1.6</target>
>> >> > <compilerId>groovy-eclipse-compiler</compilerId>
>> >> > </configuration>
>> >> > <dependencies>
>> >> > <dependency>
>> >> > <groupId>org.codehaus.groovy</groupId>
>> >> > <artifactId>groovy-eclipse-compiler</artifactId>
>> >> > <version>0.5.1-SNAPSHOT</version>
>> >> > </dependency>
>> >> > </dependencies>
>> >> > </plugin>
>> >> > <plugin>
>> >> > <groupId>org.codehaus.mojo</groupId>
>> >> > <artifactId>build-helper-maven-plugin</artifactId>
>> >> > <version>1.5</version>
>> >> > <executions>
>> >> > <execution>
>> >> > <id>add-source</id>
>> >> > <phase>generate-sources</phase>
>> >> > <goals>
>> >> > <goal>add-source</goal>
>> >> > </goals>
>> >> > <configuration>
>> >> > <sources>
>> >> > <source>src/main/groovy</source>
>> >> > </sources>
>> >> > </configuration>
>> >> > </execution>
>> >> > <execution>
>> >> > <id>add-test-source</id>
>> >> > <phase>generate-test-sources</phase>
>> >> > <goals>
>> >> > <goal>add-test-source</goal>
>> >> > </goals>
>> >> > <configuration>
>> >> > <sources>
>> >> > <source>src/test/groovy</source>
>> >> > </sources>
>> >> > </configuration>
>> >> > </execution>
>> >> > </executions>
>> >> >
>> >> > But I think this configuration was suggested by Andrew and it still
>> >> > doesn't work:
>> >> >
>> >> > <artifactId>maven-compiler-plugin</artifactId>
>> >> > <version>2.3.1</version>
>> >> > <configuration>
>> >> > <compilerId>groovy-eclipse-compiler</compilerId>
>> >> > </configuration>
>> >> > <dependencies>
>> >> > <dependency>
>> >> > <groupId>org.codehaus.groovy</groupId>
>> >> > <artifactId>groovy-eclipse-compiler</artifactId>
>> >> > <version>2.5.1</version>
>> >> > </dependency>
>> >> > <dependency>
>> >> > <groupId>org.codehaus.groovy</groupId>
>> >> > <artifactId>groovy</artifactId>
>> >> > <version>1.8.0</version>
>> >> > </dependency>
>> >> > </dependencies>
>> >> > </plugin>
>> >> > <plugin>
>> >> > <groupId>org.codehaus.mojo</groupId>
>> >> > <artifactId>build-helper-maven-plugin</artifactId>
>> >> > <version>1.5</version>
>> >> > <executions>
>> >> > <execution>
>> >> > <id>add-source</id>
>> >> > <phase>generate-sources</phase>
>> >> > <goals>
>> >> > <goal>add-source</goal>
>> >> > </goals>
>> >> > <configuration>
>> >> > <sources>
>> >> > <source>src/main/groovy</source>
>> >> > </sources>
>> >> > </configuration>
>> >> > </execution>
>> >> > <execution>
>> >> > <id>add-test-source</id>
>> >> > <phase>generate-test-sources</phase>
>> >> > <goals>
>> >> > <goal>add-test-source</goal>
>> >> > </goals>
>> >> > <configuration>
>> >> > <sources>
>> >> > <source>src/test/groovy</source>
>> >> > </sources>
>> >> > </configuration>
>> >> > </execution>
>> >> > </executions>
>> >> >
>> >> > The error I get is:
>> >> >
>> >> > Internal compiler error: java.lang.NoSuchMethodError:
>> >> >
>> >> >
>> >> > org.codehaus.groovy.classgen.InnerClassCompletionVisitor.<init>(Lorg/codehaus/groovy/control/CompilationUnit;Lorg/codehaus/groovy/control/SourceUnit;)V
>> >> > at
>> >> >
>> >> >
>> >> > org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:213)
>> >> >
>> >> > Has there been an update to the groovy-eclipse-compiler? It's not in
>> >> > Codehaus' repo.
>> >> >
>> >> > BTW: Where was that 0.5.1-SNAPSHOT hosted? I deleted the directory by
>> >> > accident in my local repository and now I can't seem to find a
>> >> > repository that has it.
>> >> > - --
>> >> > Regards,
>> >> >
>> >> > Johann Burkard
>> >> >
>> >> > <http://johannburkard.de>
>> >> > <http://twitter.com/johannburkard>
>> >> > -----BEGIN PGP SIGNATURE-----
>> >> > Version: GnuPG v1.4.10 (GNU/Linux)
>> >> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>> >> >
>> >> > iEYEARECAAYFAk3ujrMACgkQgOXEH1Six2Fn9ACfY5O2LLYmVbM49idUg0FCeWxp
>> >> > AUMAoIqFh5EkgQFQ8VgqUCkHcQjPcexl
>> >> > =cQ5Q
>> >> > -----END PGP SIGNATURE-----
>> >> >
>> >> > ---------------------------------------------------------------------
>> >> > To unsubscribe from this list, please visit:
>> >> >
>> >> >    http://xircles.codehaus.org/manage_email
>> >> >
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe from this list, please visit:
>> >>
>> >>    http://xircles.codehaus.org/manage_email
>> >>
>> >>
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


123456