You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Baz <ba...@gmail.com> on 2007/04/07 00:18:21 UTC

Problems with implementing clover with m2

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 marc_attinasi@xxx.com, 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems with implementing clover with m2

Posted by Baz <ba...@gmail.com>.
Do I suppose to implement only source files? or Unit test files? This
may be the cause of the errors...

B.

On 4/9/07, Baz <ba...@gmail.com> wrote:
> I did a search and this file bbb.java is a generated file but does not
> exist in the original src directory. The build directory is the output
> directory.
>
> ./build/clover/src/com/aaa/bbb.java
> ./build/dotnetSpecific/aaa/bbb.cs
> ./build/javaSpecific/com/aaa/platform/bbb.java
> ./build/java/class/com/aaa/bbb.class
>
> B.
>
> On 4/7/07, Baz <ba...@gmail.com> wrote:
> > Fay, thanks for getting back to me so quick. Here is the pom.xml:
> >
> > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/
> > 2001/XMLSchema-instance"
> >  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/
> > maven-v4_0_0.xsd">
> >  <parent>
> >    <groupId>com.aaa.bbb</groupId>
> >    <artifactId>module_1</artifactId>
> >    <version>2.2.0.0</version>
> >  </parent>
> >  <modelVersion>5.2.0</modelVersion>
> >  <groupId>com.bbb.aaa</groupId>
> >  <artifactId>modula_a</artifactId>
> >  <packaging>package_a</packaging>
> >  <version>2.0-SNAPSHOT</version>
> >  <name>modular_a</name>
> >  <url>http://maven.apache.org</url>
> >  <build>
> >    <plugins>
> >
> >  <plugin>
> >
> >    <groupId>org.apache.maven.plugins</groupId>
> >    <artifactId>maven-clover-plugin</artifactId>
> >    <configuration>
> >    <licenseLocation>${basedir}/clover.license</licenseLocation>
> >    <jdk>1.5</jdk>
> >    <failOnViolation>false</failOnViolation>
> >    </configuration>
> >    <executions>
> >      <execution>
> >      <configuration>
> >      <targetPercentage>70%</targetPercentage>
> >      </configuration>
> >      <phase>verify</phase>
> >      <goals>
> >        <goal>instrument</goal>
> >        <goal>check</goal>
> >      </goals>
> >      </execution>
> >    </executions>
> >  </plugin>
> >
> >      <plugin>
> >        <groupId>com.bbb.aaa.plugins</groupId>
> >        <artifactId>maven-verifying-plugin</artifactId>
> >        <version>5.0-SNAPSHOT</version>
> >        <executions>
> >          <execution>
> >            <id>verifying</id>
> >            <goals>
> >              <goal>verify</goal>
> >            </goals>
> >            <phase>test_and_verify</phase>
> >            <configuration>
> >              <project>${project}</project>
> >            </configuration>
> >          </execution>
> >        </executions>
> >      </plugin>
> >    </plugins>
> >  </build>
> >
> > <reporting>
> >
> >  <plugins>
> >
> >    <plugin>
> >    <groupId>org.apache.maven.plugins</groupId>
> >    <artifactId>maven-clover-plugin</artifactId>
> >    </plugin>
> >
> >  </plugins>
> >
> > </reporting>
> >
> >  <dependencies>
> >    <dependency>
> >      <groupId>com.bbb.aaa</groupId>
> >      <artifactId>test_case</artifactId>
> >      <version>6.0-SNAPSHOT</version>
> >      <scope>test</scope>
> >    </dependency>
> >  </dependencies>
> >  <repositories>
> >    <repository>
> >      <id>team_a</id>
> >      <name>team_a_repo</name>
> >      <url>http://192.168.2.1/repository</url>
> >    </repository>
> >  </repositories>
> > </project>
> >
> > On 4/7/07, Wayne Fay <wa...@gmail.com> wrote:
> > > Baz, send us your full pom. It seems like you are running Clover on
> > > your source code, in the source directory, rather than on the code in
> > > target, or something.
> > >
> > > Wayne
> > >
> > > On 4/7/07, Baz <ba...@gmail.com> wrote:
> > > > Johan, and all,
> > > >
> > > > The valid value seems to be "1.4" and "1.5" instead of what are documented?!
> > > >
> > > > [INFO] ------------------------------------------------------------------------
> > > > [INFO] Unsupported jdk version [jdk15]. Valid values are [1.4] and [1.5]
> > > > [INFO] ------------------------------------------------------------------------
> > > > [INFO] For more information, run Maven with the -e switch
> > > >
> > > > Meanwhile, I am still running into issue using clover.
> > > >
> > > > [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 marc_attinasi@intuit.com, Intuit
> > > > No coverage database 'C:\p4\aaa/build/clover/clover.db' found.
> > > > Creating a fresh one.
> > > > Processing files at 1.5 source level.
> > > > ERROR: Error parsing C:\p4\aaa\build\clover\src\com\bbb.java: Double
> > > > instrumentation detected: C:\p4\aaa\build\clover\src\com\bbb.java
> > > > appears to have already been instrumented by Clover.
> > > >
> > > > What should i do with the error "appears to have already been
> > > > instrumented by Clover"? I cannot google any discussion about this.
> > > >
> > > > B.
> > > >
> > > > On 4/7/07, Johan Lindquist <jo...@kawoo.co.uk> wrote:
> > > > > Hi Baz,
> > > > >
> > > > > JDK 1.5.0 should be fine, I think you simply need to instruct clover
> > > > > that you are using 1.5 (as instrumenting 1.5 source will be different
> > > > > from instrumenting pre-1.5 source).
> > > > >
> > > > > Try adding
> > > > >
> > > > > <jdk>jdk15</jdk>
> > > > >
> > > > > within the clover configuration.
> > > > >
> > > > > Johan
> > > > >
> > > > > Baz wrote:
> > > > > > Am i using a pre-1.5 jdk?
> > > > > >
> > > > > > On 4/7/07, Baz <ba...@gmail.com> wrote:
> > > > > >> johan,
> > > > > >>
> > > > > >> Thanks for the reply.
> > > > > >>
> > > > > >> I have jdk 1.5.0 installed and having issue. Which jdk version should
> > > > > >> i use?
> > > > > >>
> > > > > >> Fay said "Also, the enum problem usually means that you've got a
> > > > > >> pre-1.5 JDK
> > > > > >> with a 1.5 source file. Check your JDK version, and check this page:
> > > > > >> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> > > > > >> ler-source-and-target.html"
> > > > > >>
> > > > > >> Is that mean i need a proper version of 1.5? or other version?
> > > > > >>
> > > > > >> B.
> > > > > >>
> > > > > >> On 4/7/07, Johan Lindquist <jo...@kawoo.co.uk> wrote:
> > > > > >> > Hi Baz,
> > > > > >> >
> > > > > >> > Try to specify the JDK in the Clover config.  I believe the jdk
> > > > > >> property
> > > > > >> > described in [1] defines this.
> > > > > >> >
> > > > > >> > Cheers,
> > > > > >> >
> > > > > >> > Johan
> > > > > >> >
> > > > > >> > [1]
> > > > > >> http://maven.apache.org/plugins/maven-clover-plugin/instrument-mojo.html
> > > > > >> >
> > > > > >> > Baz wrote:
> > > > > >> > > Wayne, read the link you sent. Are you saying that i should use
> > > > > >> > > different version of JDK? I cannot run different version since other
> > > > > >> > > software is using 1.5.0. Is there any way around this issue?
> > > > > >> > >
> > > > > >> > > On 4/6/07, Baz <ba...@gmail.com> wrote:
> > > > > >> > >> Wayne, thanks for your reply.
> > > > > >> > >>
> > > > > >> > >> No kidding. I am running 1.5.0 and clover 1.3.13. Is there any way
> > > > > >> > >> around it?
> > > > > >> > >>
> > > > > >> > >> B.
> > > > > >> > >>
> > > > > >> > >> C:\p4\gemini\engines\platform>java -version
> > > > > >> > >> java version "1.5.0_06"
> > > > > >> > >> Java(TM) 2 Runtime Environment, Standard Edition (build
> > > > > >> 1.5.0_06-b05)
> > > > > >> > >> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
> > > > > >> > >>
> > > > > >> > >>
> > > > > >> > >>
> > > > > >> > >> On 4/6/07, Wayne Fay <wa...@gmail.com> wrote:
> > > > > >> > >> > Try mvn clean to clean up your target, then clover again.
> > > > > >> > >> >
> > > > > >> > >> > Also, the enum problem usually means that you've got a pre-1.5 JDK
> > > > > >> > >> > with a 1.5 source file. Check your JDK version, and check this
> > > > > >> page:
> > > > > >> > >> >
> > > > > >> > >>
> > > > > >> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> > > > > >> > >> > ler-source-and-target.html
> > > > > >> > >> >
> > > > > >> > >> > Wayne
> > > > > >> > >> >
> > > > > >> > >> > On 4/6/07, Baz <ba...@gmail.com> wrote:
> > > > > >> > >> > > 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 xxx@yyy.com, 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 <ba...@gmail.com> 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 marc_attinasi@xxx.com,
> > > > > >> 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: users-unsubscribe@maven.apache.org
> > > > > >> > >> > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > >> > >> > >
> > > > > >> > >> > >
> > > > > >> > >> >
> > > > > >> > >> >
> > > > > >> ---------------------------------------------------------------------
> > > > > >> > >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > >> > >> > For additional commands, e-mail: users-help@maven.apache.org
> > > > > >> > >> >
> > > > > >> > >> >
> > > > > >> > >>
> > > > > >> > >
> > > > > >> > > ---------------------------------------------------------------------
> > > > > >> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > >> > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > >> > >
> > > > > >> > >
> > > > > >> >
> > > > > >> > --
> > > > > >> > you too?
> > > > > >> >
> > > > > >> > ---------------------------------------------------------------------
> > > > > >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > >> > For additional commands, e-mail: users-help@maven.apache.org
> > > > > >> >
> > > > > >> >
> > > > > >>
> > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > > --
> > > > > you too?
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems with implementing clover with m2

Posted by Baz <ba...@gmail.com>.
I did a search and this file bbb.java is a generated file but does not
exist in the original src directory. The build directory is the output
directory.

./build/clover/src/com/aaa/bbb.java
./build/dotnetSpecific/aaa/bbb.cs
./build/javaSpecific/com/aaa/platform/bbb.java
./build/java/class/com/aaa/bbb.class

B.

On 4/7/07, Baz <ba...@gmail.com> wrote:
> Fay, thanks for getting back to me so quick. Here is the pom.xml:
>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/
> 2001/XMLSchema-instance"
>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/
> maven-v4_0_0.xsd">
>  <parent>
>    <groupId>com.aaa.bbb</groupId>
>    <artifactId>module_1</artifactId>
>    <version>2.2.0.0</version>
>  </parent>
>  <modelVersion>5.2.0</modelVersion>
>  <groupId>com.bbb.aaa</groupId>
>  <artifactId>modula_a</artifactId>
>  <packaging>package_a</packaging>
>  <version>2.0-SNAPSHOT</version>
>  <name>modular_a</name>
>  <url>http://maven.apache.org</url>
>  <build>
>    <plugins>
>
>  <plugin>
>
>    <groupId>org.apache.maven.plugins</groupId>
>    <artifactId>maven-clover-plugin</artifactId>
>    <configuration>
>    <licenseLocation>${basedir}/clover.license</licenseLocation>
>    <jdk>1.5</jdk>
>    <failOnViolation>false</failOnViolation>
>    </configuration>
>    <executions>
>      <execution>
>      <configuration>
>      <targetPercentage>70%</targetPercentage>
>      </configuration>
>      <phase>verify</phase>
>      <goals>
>        <goal>instrument</goal>
>        <goal>check</goal>
>      </goals>
>      </execution>
>    </executions>
>  </plugin>
>
>      <plugin>
>        <groupId>com.bbb.aaa.plugins</groupId>
>        <artifactId>maven-verifying-plugin</artifactId>
>        <version>5.0-SNAPSHOT</version>
>        <executions>
>          <execution>
>            <id>verifying</id>
>            <goals>
>              <goal>verify</goal>
>            </goals>
>            <phase>test_and_verify</phase>
>            <configuration>
>              <project>${project}</project>
>            </configuration>
>          </execution>
>        </executions>
>      </plugin>
>    </plugins>
>  </build>
>
> <reporting>
>
>  <plugins>
>
>    <plugin>
>    <groupId>org.apache.maven.plugins</groupId>
>    <artifactId>maven-clover-plugin</artifactId>
>    </plugin>
>
>  </plugins>
>
> </reporting>
>
>  <dependencies>
>    <dependency>
>      <groupId>com.bbb.aaa</groupId>
>      <artifactId>test_case</artifactId>
>      <version>6.0-SNAPSHOT</version>
>      <scope>test</scope>
>    </dependency>
>  </dependencies>
>  <repositories>
>    <repository>
>      <id>team_a</id>
>      <name>team_a_repo</name>
>      <url>http://192.168.2.1/repository</url>
>    </repository>
>  </repositories>
> </project>
>
> On 4/7/07, Wayne Fay <wa...@gmail.com> wrote:
> > Baz, send us your full pom. It seems like you are running Clover on
> > your source code, in the source directory, rather than on the code in
> > target, or something.
> >
> > Wayne
> >
> > On 4/7/07, Baz <ba...@gmail.com> wrote:
> > > Johan, and all,
> > >
> > > The valid value seems to be "1.4" and "1.5" instead of what are documented?!
> > >
> > > [INFO] ------------------------------------------------------------------------
> > > [INFO] Unsupported jdk version [jdk15]. Valid values are [1.4] and [1.5]
> > > [INFO] ------------------------------------------------------------------------
> > > [INFO] For more information, run Maven with the -e switch
> > >
> > > Meanwhile, I am still running into issue using clover.
> > >
> > > [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 marc_attinasi@intuit.com, Intuit
> > > No coverage database 'C:\p4\aaa/build/clover/clover.db' found.
> > > Creating a fresh one.
> > > Processing files at 1.5 source level.
> > > ERROR: Error parsing C:\p4\aaa\build\clover\src\com\bbb.java: Double
> > > instrumentation detected: C:\p4\aaa\build\clover\src\com\bbb.java
> > > appears to have already been instrumented by Clover.
> > >
> > > What should i do with the error "appears to have already been
> > > instrumented by Clover"? I cannot google any discussion about this.
> > >
> > > B.
> > >
> > > On 4/7/07, Johan Lindquist <jo...@kawoo.co.uk> wrote:
> > > > Hi Baz,
> > > >
> > > > JDK 1.5.0 should be fine, I think you simply need to instruct clover
> > > > that you are using 1.5 (as instrumenting 1.5 source will be different
> > > > from instrumenting pre-1.5 source).
> > > >
> > > > Try adding
> > > >
> > > > <jdk>jdk15</jdk>
> > > >
> > > > within the clover configuration.
> > > >
> > > > Johan
> > > >
> > > > Baz wrote:
> > > > > Am i using a pre-1.5 jdk?
> > > > >
> > > > > On 4/7/07, Baz <ba...@gmail.com> wrote:
> > > > >> johan,
> > > > >>
> > > > >> Thanks for the reply.
> > > > >>
> > > > >> I have jdk 1.5.0 installed and having issue. Which jdk version should
> > > > >> i use?
> > > > >>
> > > > >> Fay said "Also, the enum problem usually means that you've got a
> > > > >> pre-1.5 JDK
> > > > >> with a 1.5 source file. Check your JDK version, and check this page:
> > > > >> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> > > > >> ler-source-and-target.html"
> > > > >>
> > > > >> Is that mean i need a proper version of 1.5? or other version?
> > > > >>
> > > > >> B.
> > > > >>
> > > > >> On 4/7/07, Johan Lindquist <jo...@kawoo.co.uk> wrote:
> > > > >> > Hi Baz,
> > > > >> >
> > > > >> > Try to specify the JDK in the Clover config.  I believe the jdk
> > > > >> property
> > > > >> > described in [1] defines this.
> > > > >> >
> > > > >> > Cheers,
> > > > >> >
> > > > >> > Johan
> > > > >> >
> > > > >> > [1]
> > > > >> http://maven.apache.org/plugins/maven-clover-plugin/instrument-mojo.html
> > > > >> >
> > > > >> > Baz wrote:
> > > > >> > > Wayne, read the link you sent. Are you saying that i should use
> > > > >> > > different version of JDK? I cannot run different version since other
> > > > >> > > software is using 1.5.0. Is there any way around this issue?
> > > > >> > >
> > > > >> > > On 4/6/07, Baz <ba...@gmail.com> wrote:
> > > > >> > >> Wayne, thanks for your reply.
> > > > >> > >>
> > > > >> > >> No kidding. I am running 1.5.0 and clover 1.3.13. Is there any way
> > > > >> > >> around it?
> > > > >> > >>
> > > > >> > >> B.
> > > > >> > >>
> > > > >> > >> C:\p4\gemini\engines\platform>java -version
> > > > >> > >> java version "1.5.0_06"
> > > > >> > >> Java(TM) 2 Runtime Environment, Standard Edition (build
> > > > >> 1.5.0_06-b05)
> > > > >> > >> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
> > > > >> > >>
> > > > >> > >>
> > > > >> > >>
> > > > >> > >> On 4/6/07, Wayne Fay <wa...@gmail.com> wrote:
> > > > >> > >> > Try mvn clean to clean up your target, then clover again.
> > > > >> > >> >
> > > > >> > >> > Also, the enum problem usually means that you've got a pre-1.5 JDK
> > > > >> > >> > with a 1.5 source file. Check your JDK version, and check this
> > > > >> page:
> > > > >> > >> >
> > > > >> > >>
> > > > >> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> > > > >> > >> > ler-source-and-target.html
> > > > >> > >> >
> > > > >> > >> > Wayne
> > > > >> > >> >
> > > > >> > >> > On 4/6/07, Baz <ba...@gmail.com> wrote:
> > > > >> > >> > > 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 xxx@yyy.com, 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 <ba...@gmail.com> 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 marc_attinasi@xxx.com,
> > > > >> 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: users-unsubscribe@maven.apache.org
> > > > >> > >> > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >> > >> > >
> > > > >> > >> > >
> > > > >> > >> >
> > > > >> > >> >
> > > > >> ---------------------------------------------------------------------
> > > > >> > >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > >> > >> > For additional commands, e-mail: users-help@maven.apache.org
> > > > >> > >> >
> > > > >> > >> >
> > > > >> > >>
> > > > >> > >
> > > > >> > > ---------------------------------------------------------------------
> > > > >> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > >> > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >> > >
> > > > >> > >
> > > > >> >
> > > > >> > --
> > > > >> > you too?
> > > > >> >
> > > > >> > ---------------------------------------------------------------------
> > > > >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > >> > For additional commands, e-mail: users-help@maven.apache.org
> > > > >> >
> > > > >> >
> > > > >>
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > > > --
> > > > you too?
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems with implementing clover with m2

Posted by Baz <ba...@gmail.com>.
Fay, thanks for getting back to me so quick. Here is the pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/
2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/
maven-v4_0_0.xsd">
  <parent>
    <groupId>com.aaa.bbb</groupId>
    <artifactId>module_1</artifactId>
    <version>2.2.0.0</version>
  </parent>
  <modelVersion>5.2.0</modelVersion>
  <groupId>com.bbb.aaa</groupId>
  <artifactId>modula_a</artifactId>
  <packaging>package_a</packaging>
  <version>2.0-SNAPSHOT</version>
  <name>modular_a</name>
  <url>http://maven.apache.org</url>
  <build>
    <plugins>

  <plugin>

    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-clover-plugin</artifactId>
    <configuration>
    <licenseLocation>${basedir}/clover.license</licenseLocation>
    <jdk>1.5</jdk>
    <failOnViolation>false</failOnViolation>
    </configuration>
    <executions>
      <execution>
      <configuration>
      <targetPercentage>70%</targetPercentage>
      </configuration>
      <phase>verify</phase>
      <goals>
        <goal>instrument</goal>
        <goal>check</goal>
      </goals>
      </execution>
    </executions>
  </plugin>

      <plugin>
        <groupId>com.bbb.aaa.plugins</groupId>
        <artifactId>maven-verifying-plugin</artifactId>
        <version>5.0-SNAPSHOT</version>
        <executions>
          <execution>
            <id>verifying</id>
            <goals>
              <goal>verify</goal>
            </goals>
            <phase>test_and_verify</phase>
            <configuration>
              <project>${project}</project>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

<reporting>

  <plugins>

    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-clover-plugin</artifactId>
    </plugin>

  </plugins>

</reporting>

  <dependencies>
    <dependency>
      <groupId>com.bbb.aaa</groupId>
      <artifactId>test_case</artifactId>
      <version>6.0-SNAPSHOT</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <repositories>
    <repository>
      <id>team_a</id>
      <name>team_a_repo</name>
      <url>http://192.168.2.1/repository</url>
    </repository>
  </repositories>
</project>

On 4/7/07, Wayne Fay <wa...@gmail.com> wrote:
> Baz, send us your full pom. It seems like you are running Clover on
> your source code, in the source directory, rather than on the code in
> target, or something.
>
> Wayne
>
> On 4/7/07, Baz <ba...@gmail.com> wrote:
> > Johan, and all,
> >
> > The valid value seems to be "1.4" and "1.5" instead of what are documented?!
> >
> > [INFO] ------------------------------------------------------------------------
> > [INFO] Unsupported jdk version [jdk15]. Valid values are [1.4] and [1.5]
> > [INFO] ------------------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> >
> > Meanwhile, I am still running into issue using clover.
> >
> > [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 marc_attinasi@intuit.com, Intuit
> > No coverage database 'C:\p4\aaa/build/clover/clover.db' found.
> > Creating a fresh one.
> > Processing files at 1.5 source level.
> > ERROR: Error parsing C:\p4\aaa\build\clover\src\com\bbb.java: Double
> > instrumentation detected: C:\p4\aaa\build\clover\src\com\bbb.java
> > appears to have already been instrumented by Clover.
> >
> > What should i do with the error "appears to have already been
> > instrumented by Clover"? I cannot google any discussion about this.
> >
> > B.
> >
> > On 4/7/07, Johan Lindquist <jo...@kawoo.co.uk> wrote:
> > > Hi Baz,
> > >
> > > JDK 1.5.0 should be fine, I think you simply need to instruct clover
> > > that you are using 1.5 (as instrumenting 1.5 source will be different
> > > from instrumenting pre-1.5 source).
> > >
> > > Try adding
> > >
> > > <jdk>jdk15</jdk>
> > >
> > > within the clover configuration.
> > >
> > > Johan
> > >
> > > Baz wrote:
> > > > Am i using a pre-1.5 jdk?
> > > >
> > > > On 4/7/07, Baz <ba...@gmail.com> wrote:
> > > >> johan,
> > > >>
> > > >> Thanks for the reply.
> > > >>
> > > >> I have jdk 1.5.0 installed and having issue. Which jdk version should
> > > >> i use?
> > > >>
> > > >> Fay said "Also, the enum problem usually means that you've got a
> > > >> pre-1.5 JDK
> > > >> with a 1.5 source file. Check your JDK version, and check this page:
> > > >> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> > > >> ler-source-and-target.html"
> > > >>
> > > >> Is that mean i need a proper version of 1.5? or other version?
> > > >>
> > > >> B.
> > > >>
> > > >> On 4/7/07, Johan Lindquist <jo...@kawoo.co.uk> wrote:
> > > >> > Hi Baz,
> > > >> >
> > > >> > Try to specify the JDK in the Clover config.  I believe the jdk
> > > >> property
> > > >> > described in [1] defines this.
> > > >> >
> > > >> > Cheers,
> > > >> >
> > > >> > Johan
> > > >> >
> > > >> > [1]
> > > >> http://maven.apache.org/plugins/maven-clover-plugin/instrument-mojo.html
> > > >> >
> > > >> > Baz wrote:
> > > >> > > Wayne, read the link you sent. Are you saying that i should use
> > > >> > > different version of JDK? I cannot run different version since other
> > > >> > > software is using 1.5.0. Is there any way around this issue?
> > > >> > >
> > > >> > > On 4/6/07, Baz <ba...@gmail.com> wrote:
> > > >> > >> Wayne, thanks for your reply.
> > > >> > >>
> > > >> > >> No kidding. I am running 1.5.0 and clover 1.3.13. Is there any way
> > > >> > >> around it?
> > > >> > >>
> > > >> > >> B.
> > > >> > >>
> > > >> > >> C:\p4\gemini\engines\platform>java -version
> > > >> > >> java version "1.5.0_06"
> > > >> > >> Java(TM) 2 Runtime Environment, Standard Edition (build
> > > >> 1.5.0_06-b05)
> > > >> > >> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
> > > >> > >>
> > > >> > >>
> > > >> > >>
> > > >> > >> On 4/6/07, Wayne Fay <wa...@gmail.com> wrote:
> > > >> > >> > Try mvn clean to clean up your target, then clover again.
> > > >> > >> >
> > > >> > >> > Also, the enum problem usually means that you've got a pre-1.5 JDK
> > > >> > >> > with a 1.5 source file. Check your JDK version, and check this
> > > >> page:
> > > >> > >> >
> > > >> > >>
> > > >> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> > > >> > >> > ler-source-and-target.html
> > > >> > >> >
> > > >> > >> > Wayne
> > > >> > >> >
> > > >> > >> > On 4/6/07, Baz <ba...@gmail.com> wrote:
> > > >> > >> > > 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 xxx@yyy.com, 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 <ba...@gmail.com> 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 marc_attinasi@xxx.com,
> > > >> 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: users-unsubscribe@maven.apache.org
> > > >> > >> > > For additional commands, e-mail: users-help@maven.apache.org
> > > >> > >> > >
> > > >> > >> > >
> > > >> > >> >
> > > >> > >> >
> > > >> ---------------------------------------------------------------------
> > > >> > >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > >> > >> > For additional commands, e-mail: users-help@maven.apache.org
> > > >> > >> >
> > > >> > >> >
> > > >> > >>
> > > >> > >
> > > >> > > ---------------------------------------------------------------------
> > > >> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > >> > > For additional commands, e-mail: users-help@maven.apache.org
> > > >> > >
> > > >> > >
> > > >> >
> > > >> > --
> > > >> > you too?
> > > >> >
> > > >> > ---------------------------------------------------------------------
> > > >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > >> > For additional commands, e-mail: users-help@maven.apache.org
> > > >> >
> > > >> >
> > > >>
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > > --
> > > you too?
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems with implementing clover with m2

Posted by Wayne Fay <wa...@gmail.com>.
Baz, send us your full pom. It seems like you are running Clover on
your source code, in the source directory, rather than on the code in
target, or something.

Wayne

On 4/7/07, Baz <ba...@gmail.com> wrote:
> Johan, and all,
>
> The valid value seems to be "1.4" and "1.5" instead of what are documented?!
>
> [INFO] ------------------------------------------------------------------------
> [INFO] Unsupported jdk version [jdk15]. Valid values are [1.4] and [1.5]
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
>
> Meanwhile, I am still running into issue using clover.
>
> [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 marc_attinasi@intuit.com, Intuit
> No coverage database 'C:\p4\aaa/build/clover/clover.db' found.
> Creating a fresh one.
> Processing files at 1.5 source level.
> ERROR: Error parsing C:\p4\aaa\build\clover\src\com\bbb.java: Double
> instrumentation detected: C:\p4\aaa\build\clover\src\com\bbb.java
> appears to have already been instrumented by Clover.
>
> What should i do with the error "appears to have already been
> instrumented by Clover"? I cannot google any discussion about this.
>
> B.
>
> On 4/7/07, Johan Lindquist <jo...@kawoo.co.uk> wrote:
> > Hi Baz,
> >
> > JDK 1.5.0 should be fine, I think you simply need to instruct clover
> > that you are using 1.5 (as instrumenting 1.5 source will be different
> > from instrumenting pre-1.5 source).
> >
> > Try adding
> >
> > <jdk>jdk15</jdk>
> >
> > within the clover configuration.
> >
> > Johan
> >
> > Baz wrote:
> > > Am i using a pre-1.5 jdk?
> > >
> > > On 4/7/07, Baz <ba...@gmail.com> wrote:
> > >> johan,
> > >>
> > >> Thanks for the reply.
> > >>
> > >> I have jdk 1.5.0 installed and having issue. Which jdk version should
> > >> i use?
> > >>
> > >> Fay said "Also, the enum problem usually means that you've got a
> > >> pre-1.5 JDK
> > >> with a 1.5 source file. Check your JDK version, and check this page:
> > >> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> > >> ler-source-and-target.html"
> > >>
> > >> Is that mean i need a proper version of 1.5? or other version?
> > >>
> > >> B.
> > >>
> > >> On 4/7/07, Johan Lindquist <jo...@kawoo.co.uk> wrote:
> > >> > Hi Baz,
> > >> >
> > >> > Try to specify the JDK in the Clover config.  I believe the jdk
> > >> property
> > >> > described in [1] defines this.
> > >> >
> > >> > Cheers,
> > >> >
> > >> > Johan
> > >> >
> > >> > [1]
> > >> http://maven.apache.org/plugins/maven-clover-plugin/instrument-mojo.html
> > >> >
> > >> > Baz wrote:
> > >> > > Wayne, read the link you sent. Are you saying that i should use
> > >> > > different version of JDK? I cannot run different version since other
> > >> > > software is using 1.5.0. Is there any way around this issue?
> > >> > >
> > >> > > On 4/6/07, Baz <ba...@gmail.com> wrote:
> > >> > >> Wayne, thanks for your reply.
> > >> > >>
> > >> > >> No kidding. I am running 1.5.0 and clover 1.3.13. Is there any way
> > >> > >> around it?
> > >> > >>
> > >> > >> B.
> > >> > >>
> > >> > >> C:\p4\gemini\engines\platform>java -version
> > >> > >> java version "1.5.0_06"
> > >> > >> Java(TM) 2 Runtime Environment, Standard Edition (build
> > >> 1.5.0_06-b05)
> > >> > >> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
> > >> > >>
> > >> > >>
> > >> > >>
> > >> > >> On 4/6/07, Wayne Fay <wa...@gmail.com> wrote:
> > >> > >> > Try mvn clean to clean up your target, then clover again.
> > >> > >> >
> > >> > >> > Also, the enum problem usually means that you've got a pre-1.5 JDK
> > >> > >> > with a 1.5 source file. Check your JDK version, and check this
> > >> page:
> > >> > >> >
> > >> > >>
> > >> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> > >> > >> > ler-source-and-target.html
> > >> > >> >
> > >> > >> > Wayne
> > >> > >> >
> > >> > >> > On 4/6/07, Baz <ba...@gmail.com> wrote:
> > >> > >> > > 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 xxx@yyy.com, 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 <ba...@gmail.com> 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 marc_attinasi@xxx.com,
> > >> 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: users-unsubscribe@maven.apache.org
> > >> > >> > > For additional commands, e-mail: users-help@maven.apache.org
> > >> > >> > >
> > >> > >> > >
> > >> > >> >
> > >> > >> >
> > >> ---------------------------------------------------------------------
> > >> > >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >> > >> > For additional commands, e-mail: users-help@maven.apache.org
> > >> > >> >
> > >> > >> >
> > >> > >>
> > >> > >
> > >> > > ---------------------------------------------------------------------
> > >> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >> > > For additional commands, e-mail: users-help@maven.apache.org
> > >> > >
> > >> > >
> > >> >
> > >> > --
> > >> > you too?
> > >> >
> > >> > ---------------------------------------------------------------------
> > >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >> > For additional commands, e-mail: users-help@maven.apache.org
> > >> >
> > >> >
> > >>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > --
> > you too?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems with implementing clover with m2

Posted by Baz <ba...@gmail.com>.
Johan, and all,

The valid value seems to be "1.4" and "1.5" instead of what are documented?!

[INFO] ------------------------------------------------------------------------
[INFO] Unsupported jdk version [jdk15]. Valid values are [1.4] and [1.5]
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch

Meanwhile, I am still running into issue using clover.

[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 marc_attinasi@intuit.com, Intuit
No coverage database 'C:\p4\aaa/build/clover/clover.db' found.
Creating a fresh one.
Processing files at 1.5 source level.
ERROR: Error parsing C:\p4\aaa\build\clover\src\com\bbb.java: Double
instrumentation detected: C:\p4\aaa\build\clover\src\com\bbb.java
appears to have already been instrumented by Clover.

What should i do with the error "appears to have already been
instrumented by Clover"? I cannot google any discussion about this.

B.

On 4/7/07, Johan Lindquist <jo...@kawoo.co.uk> wrote:
> Hi Baz,
>
> JDK 1.5.0 should be fine, I think you simply need to instruct clover
> that you are using 1.5 (as instrumenting 1.5 source will be different
> from instrumenting pre-1.5 source).
>
> Try adding
>
> <jdk>jdk15</jdk>
>
> within the clover configuration.
>
> Johan
>
> Baz wrote:
> > Am i using a pre-1.5 jdk?
> >
> > On 4/7/07, Baz <ba...@gmail.com> wrote:
> >> johan,
> >>
> >> Thanks for the reply.
> >>
> >> I have jdk 1.5.0 installed and having issue. Which jdk version should
> >> i use?
> >>
> >> Fay said "Also, the enum problem usually means that you've got a
> >> pre-1.5 JDK
> >> with a 1.5 source file. Check your JDK version, and check this page:
> >> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> >> ler-source-and-target.html"
> >>
> >> Is that mean i need a proper version of 1.5? or other version?
> >>
> >> B.
> >>
> >> On 4/7/07, Johan Lindquist <jo...@kawoo.co.uk> wrote:
> >> > Hi Baz,
> >> >
> >> > Try to specify the JDK in the Clover config.  I believe the jdk
> >> property
> >> > described in [1] defines this.
> >> >
> >> > Cheers,
> >> >
> >> > Johan
> >> >
> >> > [1]
> >> http://maven.apache.org/plugins/maven-clover-plugin/instrument-mojo.html
> >> >
> >> > Baz wrote:
> >> > > Wayne, read the link you sent. Are you saying that i should use
> >> > > different version of JDK? I cannot run different version since other
> >> > > software is using 1.5.0. Is there any way around this issue?
> >> > >
> >> > > On 4/6/07, Baz <ba...@gmail.com> wrote:
> >> > >> Wayne, thanks for your reply.
> >> > >>
> >> > >> No kidding. I am running 1.5.0 and clover 1.3.13. Is there any way
> >> > >> around it?
> >> > >>
> >> > >> B.
> >> > >>
> >> > >> C:\p4\gemini\engines\platform>java -version
> >> > >> java version "1.5.0_06"
> >> > >> Java(TM) 2 Runtime Environment, Standard Edition (build
> >> 1.5.0_06-b05)
> >> > >> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
> >> > >>
> >> > >>
> >> > >>
> >> > >> On 4/6/07, Wayne Fay <wa...@gmail.com> wrote:
> >> > >> > Try mvn clean to clean up your target, then clover again.
> >> > >> >
> >> > >> > Also, the enum problem usually means that you've got a pre-1.5 JDK
> >> > >> > with a 1.5 source file. Check your JDK version, and check this
> >> page:
> >> > >> >
> >> > >>
> >> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> >> > >> > ler-source-and-target.html
> >> > >> >
> >> > >> > Wayne
> >> > >> >
> >> > >> > On 4/6/07, Baz <ba...@gmail.com> wrote:
> >> > >> > > 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 xxx@yyy.com, 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 <ba...@gmail.com> 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 marc_attinasi@xxx.com,
> >> 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: users-unsubscribe@maven.apache.org
> >> > >> > > For additional commands, e-mail: users-help@maven.apache.org
> >> > >> > >
> >> > >> > >
> >> > >> >
> >> > >> >
> >> ---------------------------------------------------------------------
> >> > >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> > >> > For additional commands, e-mail: users-help@maven.apache.org
> >> > >> >
> >> > >> >
> >> > >>
> >> > >
> >> > > ---------------------------------------------------------------------
> >> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> > > For additional commands, e-mail: users-help@maven.apache.org
> >> > >
> >> > >
> >> >
> >> > --
> >> > you too?
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> > For additional commands, e-mail: users-help@maven.apache.org
> >> >
> >> >
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> --
> you too?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems with implementing clover with m2

Posted by Johan Lindquist <jo...@kawoo.co.uk>.
Hi Baz,

JDK 1.5.0 should be fine, I think you simply need to instruct clover
that you are using 1.5 (as instrumenting 1.5 source will be different
from instrumenting pre-1.5 source).

Try adding

<jdk>jdk15</jdk>

within the clover configuration.

Johan

Baz wrote:
> Am i using a pre-1.5 jdk?
> 
> On 4/7/07, Baz <ba...@gmail.com> wrote:
>> johan,
>>
>> Thanks for the reply.
>>
>> I have jdk 1.5.0 installed and having issue. Which jdk version should
>> i use?
>>
>> Fay said "Also, the enum problem usually means that you've got a
>> pre-1.5 JDK
>> with a 1.5 source file. Check your JDK version, and check this page:
>> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
>> ler-source-and-target.html"
>>
>> Is that mean i need a proper version of 1.5? or other version?
>>
>> B.
>>
>> On 4/7/07, Johan Lindquist <jo...@kawoo.co.uk> wrote:
>> > Hi Baz,
>> >
>> > Try to specify the JDK in the Clover config.  I believe the jdk
>> property
>> > described in [1] defines this.
>> >
>> > Cheers,
>> >
>> > Johan
>> >
>> > [1]
>> http://maven.apache.org/plugins/maven-clover-plugin/instrument-mojo.html
>> >
>> > Baz wrote:
>> > > Wayne, read the link you sent. Are you saying that i should use
>> > > different version of JDK? I cannot run different version since other
>> > > software is using 1.5.0. Is there any way around this issue?
>> > >
>> > > On 4/6/07, Baz <ba...@gmail.com> wrote:
>> > >> Wayne, thanks for your reply.
>> > >>
>> > >> No kidding. I am running 1.5.0 and clover 1.3.13. Is there any way
>> > >> around it?
>> > >>
>> > >> B.
>> > >>
>> > >> C:\p4\gemini\engines\platform>java -version
>> > >> java version "1.5.0_06"
>> > >> Java(TM) 2 Runtime Environment, Standard Edition (build
>> 1.5.0_06-b05)
>> > >> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
>> > >>
>> > >>
>> > >>
>> > >> On 4/6/07, Wayne Fay <wa...@gmail.com> wrote:
>> > >> > Try mvn clean to clean up your target, then clover again.
>> > >> >
>> > >> > Also, the enum problem usually means that you've got a pre-1.5 JDK
>> > >> > with a 1.5 source file. Check your JDK version, and check this
>> page:
>> > >> >
>> > >>
>> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
>> > >> > ler-source-and-target.html
>> > >> >
>> > >> > Wayne
>> > >> >
>> > >> > On 4/6/07, Baz <ba...@gmail.com> wrote:
>> > >> > > 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 xxx@yyy.com, 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 <ba...@gmail.com> 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 marc_attinasi@xxx.com,
>> 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: users-unsubscribe@maven.apache.org
>> > >> > > For additional commands, e-mail: users-help@maven.apache.org
>> > >> > >
>> > >> > >
>> > >> >
>> > >> >
>> ---------------------------------------------------------------------
>> > >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > >> > For additional commands, e-mail: users-help@maven.apache.org
>> > >> >
>> > >> >
>> > >>
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > > For additional commands, e-mail: users-help@maven.apache.org
>> > >
>> > >
>> >
>> > --
>> > you too?
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 

-- 
you too?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems with implementing clover with m2

Posted by Baz <ba...@gmail.com>.
Am i using a pre-1.5 jdk?

On 4/7/07, Baz <ba...@gmail.com> wrote:
> johan,
>
> Thanks for the reply.
>
> I have jdk 1.5.0 installed and having issue. Which jdk version should i use?
>
> Fay said "Also, the enum problem usually means that you've got a pre-1.5 JDK
> with a 1.5 source file. Check your JDK version, and check this page:
> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> ler-source-and-target.html"
>
> Is that mean i need a proper version of 1.5? or other version?
>
> B.
>
> On 4/7/07, Johan Lindquist <jo...@kawoo.co.uk> wrote:
> > Hi Baz,
> >
> > Try to specify the JDK in the Clover config.  I believe the jdk property
> > described in [1] defines this.
> >
> > Cheers,
> >
> > Johan
> >
> > [1] http://maven.apache.org/plugins/maven-clover-plugin/instrument-mojo.html
> >
> > Baz wrote:
> > > Wayne, read the link you sent. Are you saying that i should use
> > > different version of JDK? I cannot run different version since other
> > > software is using 1.5.0. Is there any way around this issue?
> > >
> > > On 4/6/07, Baz <ba...@gmail.com> wrote:
> > >> Wayne, thanks for your reply.
> > >>
> > >> No kidding. I am running 1.5.0 and clover 1.3.13. Is there any way
> > >> around it?
> > >>
> > >> B.
> > >>
> > >> C:\p4\gemini\engines\platform>java -version
> > >> java version "1.5.0_06"
> > >> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> > >> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
> > >>
> > >>
> > >>
> > >> On 4/6/07, Wayne Fay <wa...@gmail.com> wrote:
> > >> > Try mvn clean to clean up your target, then clover again.
> > >> >
> > >> > Also, the enum problem usually means that you've got a pre-1.5 JDK
> > >> > with a 1.5 source file. Check your JDK version, and check this page:
> > >> >
> > >> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> > >> > ler-source-and-target.html
> > >> >
> > >> > Wayne
> > >> >
> > >> > On 4/6/07, Baz <ba...@gmail.com> wrote:
> > >> > > 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 xxx@yyy.com, 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 <ba...@gmail.com> 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 marc_attinasi@xxx.com, 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: users-unsubscribe@maven.apache.org
> > >> > > For additional commands, e-mail: users-help@maven.apache.org
> > >> > >
> > >> > >
> > >> >
> > >> > ---------------------------------------------------------------------
> > >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >> > For additional commands, e-mail: users-help@maven.apache.org
> > >> >
> > >> >
> > >>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > --
> > you too?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems with implementing clover with m2

Posted by Baz <ba...@gmail.com>.
johan,

Thanks for the reply.

I have jdk 1.5.0 installed and having issue. Which jdk version should i use?

Fay said "Also, the enum problem usually means that you've got a pre-1.5 JDK
with a 1.5 source file. Check your JDK version, and check this page:
http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
ler-source-and-target.html"

Is that mean i need a proper version of 1.5? or other version?

B.

On 4/7/07, Johan Lindquist <jo...@kawoo.co.uk> wrote:
> Hi Baz,
>
> Try to specify the JDK in the Clover config.  I believe the jdk property
> described in [1] defines this.
>
> Cheers,
>
> Johan
>
> [1] http://maven.apache.org/plugins/maven-clover-plugin/instrument-mojo.html
>
> Baz wrote:
> > Wayne, read the link you sent. Are you saying that i should use
> > different version of JDK? I cannot run different version since other
> > software is using 1.5.0. Is there any way around this issue?
> >
> > On 4/6/07, Baz <ba...@gmail.com> wrote:
> >> Wayne, thanks for your reply.
> >>
> >> No kidding. I am running 1.5.0 and clover 1.3.13. Is there any way
> >> around it?
> >>
> >> B.
> >>
> >> C:\p4\gemini\engines\platform>java -version
> >> java version "1.5.0_06"
> >> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> >> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
> >>
> >>
> >>
> >> On 4/6/07, Wayne Fay <wa...@gmail.com> wrote:
> >> > Try mvn clean to clean up your target, then clover again.
> >> >
> >> > Also, the enum problem usually means that you've got a pre-1.5 JDK
> >> > with a 1.5 source file. Check your JDK version, and check this page:
> >> >
> >> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> >> > ler-source-and-target.html
> >> >
> >> > Wayne
> >> >
> >> > On 4/6/07, Baz <ba...@gmail.com> wrote:
> >> > > 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 xxx@yyy.com, 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 <ba...@gmail.com> 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 marc_attinasi@xxx.com, 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: users-unsubscribe@maven.apache.org
> >> > > For additional commands, e-mail: users-help@maven.apache.org
> >> > >
> >> > >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> > For additional commands, e-mail: users-help@maven.apache.org
> >> >
> >> >
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> --
> you too?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems with implementing clover with m2

Posted by Johan Lindquist <jo...@kawoo.co.uk>.
Hi Baz,

Try to specify the JDK in the Clover config.  I believe the jdk property
described in [1] defines this.

Cheers,

Johan

[1] http://maven.apache.org/plugins/maven-clover-plugin/instrument-mojo.html

Baz wrote:
> Wayne, read the link you sent. Are you saying that i should use
> different version of JDK? I cannot run different version since other
> software is using 1.5.0. Is there any way around this issue?
> 
> On 4/6/07, Baz <ba...@gmail.com> wrote:
>> Wayne, thanks for your reply.
>>
>> No kidding. I am running 1.5.0 and clover 1.3.13. Is there any way
>> around it?
>>
>> B.
>>
>> C:\p4\gemini\engines\platform>java -version
>> java version "1.5.0_06"
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
>> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
>>
>>
>>
>> On 4/6/07, Wayne Fay <wa...@gmail.com> wrote:
>> > Try mvn clean to clean up your target, then clover again.
>> >
>> > Also, the enum problem usually means that you've got a pre-1.5 JDK
>> > with a 1.5 source file. Check your JDK version, and check this page:
>> >
>> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
>> > ler-source-and-target.html
>> >
>> > Wayne
>> >
>> > On 4/6/07, Baz <ba...@gmail.com> wrote:
>> > > 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 xxx@yyy.com, 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 <ba...@gmail.com> 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 marc_attinasi@xxx.com, 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: users-unsubscribe@maven.apache.org
>> > > For additional commands, e-mail: users-help@maven.apache.org
>> > >
>> > >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 

-- 
you too?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems with implementing clover with m2

Posted by Baz <ba...@gmail.com>.
Wayne, read the link you sent. Are you saying that i should use
different version of JDK? I cannot run different version since other
software is using 1.5.0. Is there any way around this issue?

On 4/6/07, Baz <ba...@gmail.com> wrote:
> Wayne, thanks for your reply.
>
> No kidding. I am running 1.5.0 and clover 1.3.13. Is there any way around it?
>
> B.
>
> C:\p4\gemini\engines\platform>java -version
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
>
>
>
> On 4/6/07, Wayne Fay <wa...@gmail.com> wrote:
> > Try mvn clean to clean up your target, then clover again.
> >
> > Also, the enum problem usually means that you've got a pre-1.5 JDK
> > with a 1.5 source file. Check your JDK version, and check this page:
> > http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> > ler-source-and-target.html
> >
> > Wayne
> >
> > On 4/6/07, Baz <ba...@gmail.com> wrote:
> > > 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 xxx@yyy.com, 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 <ba...@gmail.com> 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 marc_attinasi@xxx.com, 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: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems with implementing clover with m2

Posted by Baz <ba...@gmail.com>.
Wayne, thanks for your reply.

No kidding. I am running 1.5.0 and clover 1.3.13. Is there any way around it?

B.

C:\p4\gemini\engines\platform>java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)



On 4/6/07, Wayne Fay <wa...@gmail.com> wrote:
> Try mvn clean to clean up your target, then clover again.
>
> Also, the enum problem usually means that you've got a pre-1.5 JDK
> with a 1.5 source file. Check your JDK version, and check this page:
> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> ler-source-and-target.html
>
> Wayne
>
> On 4/6/07, Baz <ba...@gmail.com> wrote:
> > 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 xxx@yyy.com, 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 <ba...@gmail.com> 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 marc_attinasi@xxx.com, 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: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems with implementing clover with m2

Posted by Wayne Fay <wa...@gmail.com>.
Try mvn clean to clean up your target, then clover again.

Also, the enum problem usually means that you've got a pre-1.5 JDK
with a 1.5 source file. Check your JDK version, and check this page:
http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
ler-source-and-target.html

Wayne

On 4/6/07, Baz <ba...@gmail.com> wrote:
> 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 xxx@yyy.com, 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 <ba...@gmail.com> 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 marc_attinasi@xxx.com, 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems with implementing clover with m2

Posted by Baz <ba...@gmail.com>.
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 xxx@yyy.com, 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 <ba...@gmail.com> 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 marc_attinasi@xxx.com, 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org