Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-928

Groovy classes are not visible from Java when instrumented by Clover within Maven lifecycle

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 3.0 M5, 3.0
    • 3.0 M4
    • Groovy, Maven plugin
    • None
    • Windows 7, Maven 2.0.10, Java 1.6.0_18, gmaven_plugin 1.0-rc-5, Groovy 1.6.2

      There is something strange going on with the classpath when building combined Java and Groovy Maven modules instrumented by Clover. If I run the build without Clover, it completes OK. If I apply the following binding in the POM, it fails:

                  <plugin>
                      <groupId>com.atlassian.maven.plugins</groupId>
                      <artifactId>maven-clover2-plugin</artifactId>
                      <version>3.0.0-m4r3</version>
                      <executions>
                          <execution>
                              <id>instrument</id>
                              <phase>process-sources</phase>
                              <goals>
                                  <goal>setup</goal>
                              </goals>
                          </execution>
                          <execution>
                              <id>report</id>
                              <phase>verify</phase>
                              <goals>
                                  <goal>clover</goal>
                              </goals>
                          </execution>
                      </executions>
                  </plugin>
      

      It is giving errors like this:

      C:\Users\amcmanus\Documents\Temp\clov-920\target\clover\src-instrumented\org\oclc\test\InJava.java:[20,12] cannot find symbol
      symbol  : class Thingumy
      location: class org.oclc.test.InJava
      

      (where Thingumy is a Groovy class).

      Test case to follow shortly...

        1. clov-928.tar.gz
          11 kB
        2. clov-928.zip
          21 kB

          Form Name

            [CLOV-928] Groovy classes are not visible from Java when instrumented by Clover within Maven lifecycle

              npellow Nick
              2aceeb5c9a94 Alex McManus
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: