Anyone have an idea on this? I'm effectively stuck right now and can't
get things working.

-warner

On Jan 20, 2008 7:25 PM, Warner Onstine <[EMAIL PROTECTED]> wrote:
>
> ---------- Forwarded message ----------
> From: Warner Onstine <[EMAIL PROTECTED]>
> Date: Jan 20, 2008 12:11 PM
> Subject: problem with maven-plugin-compiler
> To: [EMAIL PROTECTED]
>
>
> Hi all,
> I've been compiling just fine using the antrun plugin and maven 2.
> This morning I added in a circular dependency that just killed it. So,
> I went in search of a solution and thought I found one through the new
> plugin (http://mojo.codehaus.org/groovy/groovy-maven-plugin/index.html).
>
> After configuring it and running a clean and then a mvn test, most of
> my tests are failing due to some weirdness with the stubs that are
> generated (as if the final classes aren't being used but the stubs
> instead).
>
> Here is how I have it configured (needed to add the 1.5 stuff to get
> it working):
> <plugin>
>              <groupId>org.apache.maven.plugins</groupId>
>              <artifactId>maven-compiler-plugin</artifactId>
>              <!-- best lock down version of the plugin too -->
>             <configuration>
>                 <source>1.5</source>
>                 <target>1.5</target>
>             </configuration>
>         </plugin>
>         <plugin>
>             <groupId>org.codehaus.mojo.groovy</groupId>
>             <artifactId>groovy-maven-plugin</artifactId>
>             <executions>
>              <execution>
>                  <goals>
>                      <goal>generateStubs</goal>
>                      <goal>compile</goal>
>                      <goal>generateTestStubs</goal>
>                      <goal>testCompile</goal>
>                  </goals>
>              </execution>
>             </executions>
>        </plugin>
>
> Thinking it might be related I upgraded groovy to 1.5.1 but with still
> the same problem.
>
> I'm running Maven 2.0.4.
>
> Here's an example of one of my test failures:
> Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 3.557
> sec <<< FAILURE!
> testGetModels(org.cimarron.activerecord.PersistenceMixinTest)  Time
> elapsed: 3.038 sec  <<< ERROR!
> org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot
> cast object 'class org.cimarron.test.models.Event' with class
> 'java.lang.Class' to class 'org.cimarron.activerecord.ActiveRecord'
>
> As you can see the stub that was generated was just a "Class" but in
> reality it extends "ActiveRecord".
>
> Thanks for any help!
>
> -warner
>
> --
> Warner Onstine - Programmer/Author
> New book on Tapestry 4!
> Tapestry 101 available at
> http://sourcebeat.com/books/tapestrylive.html
> [EMAIL PROTECTED]
> http://warneronstine.com/blog
>
>
>
> --
> Warner Onstine - Programmer/Author
> New book on Tapestry 4!
> Tapestry 101 available at
> http://sourcebeat.com/books/tapestrylive.html
> [EMAIL PROTECTED]
> http://warneronstine.com/blog
>



-- 
Warner Onstine - Programmer/Author
New book on Tapestry 4!
Tapestry 101 available at
http://sourcebeat.com/books/tapestrylive.html
[EMAIL PROTECTED]
http://warneronstine.com/blog

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

    http://xircles.codehaus.org/manage_email

Reply via email to