Here is more info from the first time i added the clover code into pom.xml:
[INFO] [clover:instrumentInternal]
Clover Version 1.3.13, built on September 04 2006
loaded from: C:\Documents and Settings\Administrator\.m2\com\cenqua\clover\clove
r\1.3.13\clover-1.3.13.jar
5 Seat Team License registered to [EMAIL PROTECTED], yyy
No coverage database 'C:\p4\aaa/build/clover/clover.db' found.
Creating a fresh one.
Processing files at 1.3 source level.
ERROR: C:\p4\aaa\build\generated-src\javaSpecific\xxx.java:20:8:unexpected
token: enum
ERROR: Error parsing C:\p4\aaa\build\generated-src\xxx.java: line 20:
unexpected token: enum
Here are the actual clover related code in pom.xml:
In the build, plugins section:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clover-plugin</artifactId>
<configuration>
<licenseLocation>${basedir}/clover.license</licenseLocation>
<haltOnFailure>false</haltOnFailure>
</configuration>
<executions>
<execution>
<configuration>
<targetPercentage>50%</targetPercentage>
</configuration>
<phase>verify</phase>
<goals>
<goal>instrument</goal>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
In the repoorting, plugins section:
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clover-plugin</artifactId>
</plugin>
</plugins>
</reporting>
Any ideas what goes wrong?
Thanks. B.
On 4/6/07, Baz <[EMAIL PROTECTED]> wrote:
Hi,
I am having a lot of issue with implementing clover with m2. I have
read http://maven.apache.org/plugins/maven-clover-plugin/usage.html
and I am having the following error:
[INFO] [clover:instrumentInternal]
Clover Version 1.3.13, built on September 04 2006
loaded from: C:\Documents and Settings\Administrator\.m2\com\cenqua\clover\clove
r\1.3.13\clover-1.3.13.jar
5 Seat Team License registered to [EMAIL PROTECTED], Intuit
No coverage database 'C:\p4\aaa/build/clover/clover.db' foun
d. Creating a fresh one.
Processing files at 1.3 source level.
ERROR: Error parsing C:\p4\aaa\build\clover\src\com\xxx\zzz.java:
Double instrumentation detected:
C:\p4\aaa\build\clover\src\com\zzz.java appears to have already been
instrumented by Clover.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Clover has failed to instrument the source files
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43 seconds
[INFO] Finished at: Fri Apr 06 15:05:18 PDT 2007
[INFO] Final Memory: 11M/21M
[INFO] ------------------------------------------------------------------------
Please help.
B.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]