GMaven (OLD... DO NOT USE)
  1. GMaven (OLD... DO NOT USE)
  2. MGROOVY-175

Stubs prevent compilation of real groovy classes

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-rc-4
    • Component/s: compile, stub generation
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Stubs prevent compilation of real groovy classes. If I use the config from the docos, viz:

      <goals>
               <goal>generateStubs</goal>
               <goal>compile</goal>
               <goal>generateTestStubs</goal>
               <goal>testCompile</goal>
      </goals>
      

      The tests all fail (saying "initialization error, no tests found" or something to that effect). If you look at the byte code the reason is clear - the tests are stubs. If I remove the stub generation goals then a pure Groovy project works, but cross compilation is then broken (I presume?).

        Issue Links

          Activity

          Hide
          Dave Syer added a comment -

          This problem as described goes away if my project explicitly depends on maven-core:2.0.9 (whereas the gmaven plugin seems to use 2.0.5 by default).

          Show
          Dave Syer added a comment - This problem as described goes away if my project explicitly depends on maven-core:2.0.9 (whereas the gmaven plugin seems to use 2.0.5 by default).
          Hide
          Jason Dillon added a comment -

          The problem should also go away when running {{mvn clean install} or something similar. Will look into this more to see if we an eliminate this annoying behavior.

          Show
          Jason Dillon added a comment - The problem should also go away when running {{mvn clean install} or something similar. Will look into this more to see if we an eliminate this annoying behavior.
          Hide
          Jason Dillon added a comment -

          Hopefully upgrade of Maven components to 2.0.9 will fix this.

          Show
          Jason Dillon added a comment - Hopefully upgrade of Maven components to 2.0.9 will fix this.

            People

            • Assignee:
              Jason Dillon
              Reporter:
              Dave Syer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: