[ http://jira.codehaus.org/browse/MNG-1136?page=all ]
Dave Sag updated MNG-1136: -------------------------- Attachment: example_pom_from_davesag.xml my POM xml is attached. as you can see I do declare java 1.4 as both source and target. if I uncomment the clover report and run %mvn -e site I get the following result. (disco-davesag) [09:55:16] ~/checkouts/private/davesag/AddressBook$ mvn -e site + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building AddresBook fitnesse example [INFO] task-segment: [site] [INFO] ---------------------------------------------------------------------------- [INFO] Preparing clover:report [INFO] [clover:instrument] Clover Version 1.3.9, built on July 06 2005 loaded from: /Users/davesag/.m2/repository/clover/clover/1.3.9/clover-1.3.9.jar 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. After this, please visit http://www.cenqua.com to obtain a licensed version of Clover No coverage database '/Users/davesag/checkouts/private/davesag/AddressBook/target/clover/clover.db' found. Creating a fresh one. ERROR: /Users/davesag/checkouts/private/davesag/AddressBook/src/main/java/com/davesag/example/addressbook/AddressBook.java:54:16:unexpected token: result ERROR: Error parsing /Users/davesag/checkouts/private/davesag/AddressBook/src/main/java/com/davesag/example/addressbook/AddressBook.java: line 54: unexpected token: result [INFO] ---------------------------------------------------------------------------- [ERROR] BUILD ERROR [INFO] ---------------------------------------------------------------------------- [INFO] Clover has failed to instrument the source files [INFO] ---------------------------------------------------------------------------- [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Clover has failed to instrument the source files at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:544) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:789) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:718) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Clover has failed to instrument the source files at org.apache.maven.plugin.clover.CloverInstrumentMojo.execute(CloverInstrumentMojo.java:94) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519) ... 20 more > clover breaks when encountering assert statements. > -------------------------------------------------- > > Key: MNG-1136 > URL: http://jira.codehaus.org/browse/MNG-1136 > Project: Maven 2 > Type: Bug > Components: maven-clover-plugin > Versions: 2.0-beta-3 > Environment: any > Reporter: Dave Sag > Assignee: Vincent Massol > Attachments: example_pom_from_davesag.xml > > > the clover plugin is breaking on the line > assert result != null : "the result should not be null"; > saying > [INFO] Reason: Clover has failed to instrument the source files > i can only assume that this is because clover does not understand the assert, > or is assuming java 1.3? eitherway it's no use to me until this is fixed. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]