grovvy-eclipse-compiler and Maven

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

grovvy-eclipse-compiler and Maven

Scheidt, Stefan
Hi,

the Groovy Eclipse Compiler now supports AST transformations when used stand alone, see http://jira.codehaus.org/browse/GRECLIPSE-889.

When will this be available via the groovy-eclipse-compiler for Maven projects? Or: What do I have to do to use it in maven projects?

Regards
Stefan

--

OPITZ CONSULTING Gummersbach GmbH
Stefan Scheidt - Dipl.-Math. - Solution Architect
Kirchstraße 6 - 51647 Gummersbach
Phone +49 2261 6001-0 - Fax -4200 - Mobile +49 173 7252423
[hidden email] - http://www.opitz-consulting.com
Geschäftsführer: Bernhard Opitz, Martin Bertelsmeier
HRB-Nr. 39163 Amtsgericht Köln


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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: grovvy-eclipse-compiler and Maven

Andy Clement
Hi,

As I commented in the bug, the rebuild will be available imminently. (
It will be groovy 1.7.5 too).  There will be an edit for your pom to
pick it up.

As I also mentioned it includes (kind of by accident) something
temporary I was working on and have since backed out - if you see
problems with unresolved references, let me know.

cheers
Andy

On 17 November 2010 00:03, Scheidt, Stefan
<[hidden email]> wrote:

> Hi,
>
> the Groovy Eclipse Compiler now supports AST transformations when used stand alone, see http://jira.codehaus.org/browse/GRECLIPSE-889.
>
> When will this be available via the groovy-eclipse-compiler for Maven projects? Or: What do I have to do to use it in maven projects?
>
> Regards
> Stefan
>
> --
>
> OPITZ CONSULTING Gummersbach GmbH
> Stefan Scheidt - Dipl.-Math. - Solution Architect
> Kirchstraße 6 - 51647 Gummersbach
> Phone +49 2261 6001-0 - Fax -4200 - Mobile +49 173 7252423
> [hidden email] - http://www.opitz-consulting.com
> Geschäftsführer: Bernhard Opitz, Martin Bertelsmeier
> HRB-Nr. 39163 Amtsgericht Köln
>
>
> ---------------------------------------------------------------------
> 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: grovvy-eclipse-compiler and Maven

Andrew Eisenberg
It is now available.  Please use the 0.5.1-SNAPSHOT version.  We haven't tested this as thoroughly as we would like, so please get back to us with your experience.

On Wed, Nov 17, 2010 at 7:40 AM, Andy Clement <[hidden email]> wrote:
Hi,

As I commented in the bug, the rebuild will be available imminently. (
It will be groovy 1.7.5 too).  There will be an edit for your pom to
pick it up.

As I also mentioned it includes (kind of by accident) something
temporary I was working on and have since backed out - if you see
problems with unresolved references, let me know.

cheers
Andy

On 17 November 2010 00:03, Scheidt, Stefan
<[hidden email]> wrote:
> Hi,
>
> the Groovy Eclipse Compiler now supports AST transformations when used stand alone, see http://jira.codehaus.org/browse/GRECLIPSE-889.
>
> When will this be available via the groovy-eclipse-compiler for Maven projects? Or: What do I have to do to use it in maven projects?
>
> Regards
> Stefan
>
> --
>
> OPITZ CONSULTING Gummersbach GmbH
> Stefan Scheidt - Dipl.-Math. - Solution Architect
> Kirchstraße 6 - 51647 Gummersbach
> Phone +49 2261 6001-0 - Fax -4200 - Mobile +49 173 7252423
> [hidden email] - http://www.opitz-consulting.com
> Geschäftsführer: Bernhard Opitz, Martin Bertelsmeier
> HRB-Nr. 39163 Amtsgericht Köln
>
>
> ---------------------------------------------------------------------
> 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: grovvy-eclipse-compiler and Maven

Scheidt, Stefan
Great! Will try it as soon as possible.

Am 17.11.2010 um 18:33 schrieb "Andrew Eisenberg" <[hidden email]>:

It is now available.  Please use the 0.5.1-SNAPSHOT version.  We haven't tested this as thoroughly as we would like, so please get back to us with your experience.

On Wed, Nov 17, 2010 at 7:40 AM, Andy Clement <[hidden email]> wrote:
Hi,

As I commented in the bug, the rebuild will be available imminently. (
It will be groovy 1.7.5 too).  There will be an edit for your pom to
pick it up.

As I also mentioned it includes (kind of by accident) something
temporary I was working on and have since backed out - if you see
problems with unresolved references, let me know.

cheers
Andy

On 17 November 2010 00:03, Scheidt, Stefan
<[hidden email]> wrote:
> Hi,
>
> the Groovy Eclipse Compiler now supports AST transformations when used stand alone, see http://jira.codehaus.org/browse/GRECLIPSE-889.
>
> When will this be available via the groovy-eclipse-compiler for Maven projects? Or: What do I have to do to use it in maven projects?
>
> Regards
> Stefan
>
> --
>
> OPITZ CONSULTING Gummersbach GmbH
> Stefan Scheidt - Dipl.-Math. - Solution Architect
> Kirchstraße 6 - 51647 Gummersbach
> Phone +49 2261 6001-0 - Fax -4200 - Mobile +49 173 7252423
> [hidden email] - http://www.opitz-consulting.com
> Geschäftsführer: Bernhard Opitz, Martin Bertelsmeier
> HRB-Nr. 39163 Amtsgericht Köln
>
>
> ---------------------------------------------------------------------
> 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: grovvy-eclipse-compiler and Maven

Scheidt, Stefan
In reply to this post by Andrew Eisenberg
Hi Andrew,

i still have the same problem running Spock Specs in the maven build:

###snip##
Running kata.movietickets.HelloSpockSpecs
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.076 sec <<< FAILURE!

Results :

Tests in error: 
  initializationError(kata.movietickets.HelloSpockSpecs)
###snap###

and

###snip###
-------------------------------------------------------------------------------
Test set: kata.movietickets.HelloSpockSpecs
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.075 sec <<< FAILURE!
initializationError(kata.movietickets.HelloSpockSpecs)  Time elapsed: 0.002 sec  <<< ERROR!
org.spockframework.runtime.InvalidSpecException: Specification 'kata.movietickets.HelloSpockSpecs' was not compiled properly (Spock AST transform was not run); try to do a clean build
###snap###

The probably relevant parts of pom.xml are

###snip###
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <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>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <includes>
                        <include>**/*Specs.*</include>
                        <include>**/*Tests.*</include>
                    </includes>
                </configuration>
            </plugin>
        </plugins>
    </build>
###snap###

Find enclosed to complete sample maven project.

Any ideas what I'm doing wrong?

Regards
Stefan


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

    http://xircles.codehaus.org/manage_email

movietickets.zip (9K) Download Attachment
ATT00001.htm (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: grovvy-eclipse-compiler and Maven

Andy Clement
Thanks for the sample code, that will help a lot!  It is probably not
your fault, we have zero tests for the compiler being run in this way,
everything is a manual process.

Andy

On 17 November 2010 21:55, Scheidt, Stefan
<[hidden email]> wrote:

> Hi Andrew,
> i still have the same problem running Spock Specs in the maven build:
> ###snip##
> Running kata.movietickets.HelloSpockSpecs
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.076 sec
> <<< FAILURE!
> Results :
> Tests in error:
>   initializationError(kata.movietickets.HelloSpockSpecs)
> ###snap###
> and
> ###snip###
> -------------------------------------------------------------------------------
> Test set: kata.movietickets.HelloSpockSpecs
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.075 sec
> <<< FAILURE!
> initializationError(kata.movietickets.HelloSpockSpecs)  Time elapsed: 0.002
> sec  <<< ERROR!
> org.spockframework.runtime.InvalidSpecException: Specification
> 'kata.movietickets.HelloSpockSpecs' was not compiled properly (Spock AST
> transform was not run); try to do a clean build
> ###snap###
> The probably relevant parts of pom.xml are
> ###snip###
>     <build>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-compiler-plugin</artifactId>
>                 <version>2.3.2</version>
>                 <configuration>
>                     <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>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-surefire-plugin</artifactId>
>                 <version>2.6</version>
>                 <configuration>
>                     <includes>
>                         <include>**/*Specs.*</include>
>                         <include>**/*Tests.*</include>
>                     </includes>
>                 </configuration>
>             </plugin>
>         </plugins>
>     </build>
> ###snap###
> Find enclosed to complete sample maven project.
> Any ideas what I'm doing wrong?
> Regards
> Stefan
>
> ---------------------------------------------------------------------
> 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: grovvy-eclipse-compiler and Maven

Andrew Eisenberg
In reply to this post by Scheidt, Stefan
Hi Stefan,
Thanks for your test project as well as your patience.  I've just
uploaded a new snapshot of the compiler.  So, maven should be smart
enough to automatically update when you do the next build, but if not,
just go to your ~/.m2/repository and delete the old version of
groovy-eclipse-batch-0.5.1-SNAPSHOT.jar and rebuild.

I've tested this on your project and all the spock transformations are
properly applied and the tests pass.

On Wed, Nov 17, 2010 at 9:55 PM, Scheidt, Stefan
<[hidden email]> wrote:

>
> Hi Andrew,
> i still have the same problem running Spock Specs in the maven build:
> ###snip##
> Running kata.movietickets.HelloSpockSpecs
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.076 sec <<< FAILURE!
> Results :
> Tests in error:
>   initializationError(kata.movietickets.HelloSpockSpecs)
> ###snap###
> and
> ###snip###
> -------------------------------------------------------------------------------
> Test set: kata.movietickets.HelloSpockSpecs
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.075 sec <<< FAILURE!
> initializationError(kata.movietickets.HelloSpockSpecs)  Time elapsed: 0.002 sec  <<< ERROR!
> org.spockframework.runtime.InvalidSpecException: Specification 'kata.movietickets.HelloSpockSpecs' was not compiled properly (Spock AST transform was not run); try to do a clean build
> ###snap###
> The probably relevant parts of pom.xml are
> ###snip###
>     <build>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-compiler-plugin</artifactId>
>                 <version>2.3.2</version>
>                 <configuration>
>                     <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>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-surefire-plugin</artifactId>
>                 <version>2.6</version>
>                 <configuration>
>                     <includes>
>                         <include>**/*Specs.*</include>
>                         <include>**/*Tests.*</include>
>                     </includes>
>                 </configuration>
>             </plugin>
>         </plugins>
>     </build>
> ###snap###
> Find enclosed to complete sample maven project.
> Any ideas what I'm doing wrong?
> Regards
> Stefan
>
> ---------------------------------------------------------------------
> 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: grovvy-eclipse-compiler and Maven

Scheidt, Stefan
Hi Andrew,

it work's fine for me now! Thanks for the quick fix!

Regards
Stefan


Am 18.11.2010 um 22:07 schrieb Andrew Eisenberg:

> Hi Stefan,
> Thanks for your test project as well as your patience.  I've just
> uploaded a new snapshot of the compiler.  So, maven should be smart
> enough to automatically update when you do the next build, but if not,
> just go to your ~/.m2/repository and delete the old version of
> groovy-eclipse-batch-0.5.1-SNAPSHOT.jar and rebuild.
>
> I've tested this on your project and all the spock transformations are
> properly applied and the tests pass.
>
> On Wed, Nov 17, 2010 at 9:55 PM, Scheidt, Stefan
> <[hidden email]> wrote:
>>
>> Hi Andrew,
>> i still have the same problem running Spock Specs in the maven build:
>> ###snip##
>> Running kata.movietickets.HelloSpockSpecs
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.076 sec <<< FAILURE!
>> Results :
>> Tests in error:
>>   initializationError(kata.movietickets.HelloSpockSpecs)
>> ###snap###
>> and
>> ###snip###
>> -------------------------------------------------------------------------------
>> Test set: kata.movietickets.HelloSpockSpecs
>> -------------------------------------------------------------------------------
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.075 sec <<< FAILURE!
>> initializationError(kata.movietickets.HelloSpockSpecs)  Time elapsed: 0.002 sec  <<< ERROR!
>> org.spockframework.runtime.InvalidSpecException: Specification 'kata.movietickets.HelloSpockSpecs' was not compiled properly (Spock AST transform was not run); try to do a clean build
>> ###snap###
>> The probably relevant parts of pom.xml are
>> ###snip###
>>     <build>
>>         <plugins>
>>             <plugin>
>>                 <groupId>org.apache.maven.plugins</groupId>
>>                 <artifactId>maven-compiler-plugin</artifactId>
>>                 <version>2.3.2</version>
>>                 <configuration>
>>                     <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>
>>             </plugin>
>>             <plugin>
>>                 <groupId>org.apache.maven.plugins</groupId>
>>                 <artifactId>maven-surefire-plugin</artifactId>
>>                 <version>2.6</version>
>>                 <configuration>
>>                     <includes>
>>                         <include>**/*Specs.*</include>
>>                         <include>**/*Tests.*</include>
>>                     </includes>
>>                 </configuration>
>>             </plugin>
>>         </plugins>
>>     </build>
>> ###snap###
>> Find enclosed to complete sample maven project.
>> Any ideas what I'm doing wrong?
>> Regards
>> Stefan
>>
>> ---------------------------------------------------------------------
>> 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