compile error clover and maven

When i include clover with mave with my project i get the following compilation error:

[DEBUG] Source roots:

[DEBUG] D:\workspace\build\9.7.0.0\target\clover\src

[DEBUG] D:\workspace\build\9.7.0.0\src\main\groovy

[DEBUG] D:\workspace\build\9.7.0.0\target\clover\generated-sources\xmlbeans

[DEBUG] D:\workspace\build\9.7.0.0\target\clover\generated-sources\groovy-stubs\main

[INFO] Compiling 4921 source files to D:\workspace\build\9.7.0.0\target\clover\classes

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Compilation failure

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\cognos\CognosReportParamsBuilder.java:[6,49] com.sun.org.apache.xerces.internal.parsers.DOMParser is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\reports\PrimitiveMap.java:[3,24] sun.util.calendar.ZoneInfo is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\crypto\Envelop.java:[35,27] sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\util\reflection\ObjectInitUtil.java:[3,15] sun.misc.Unsafe is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\util\SizeOf.java:[10,15] sun.misc.SharedSecrets is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\util\SizeOf.java:[11,24] sun.util.calendar.CalendarSystem is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\crypto\DataEncoder.java:[15,27] sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\reports\reportsIFS\RepairInitiator.java:[27,15] sun.misc.Launcher is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\cognos\Cognos8Exception.java:[9,40] com.sun.org.apache.xpath.internal.XPathAPI is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\reports\PrimitiveMap.java:[21,90] sun.util.calendar.ZoneInfo is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\velocity\contextelements\chat\SiteChatInterface.java:[15,1256] non-static variable java cannot be referenced from a static context

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\velocity\contextelements\chat\SiteChatInterface.java:[15,1260] boolean cannot be dereferenced

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\velocity\contextelements\chat\SiteChatInterface.java:[15,1556] non-static variable java cannot be referenced from a static context

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\velocity\contextelements\chat\SiteChatInterface.java:[15,1560] boolean cannot be dereferenced

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\velocity\contextelements\chat\SiteChatInterface.java:[15,1766] non-static variable java cannot be referenced from a static context

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\velocity\contextelements\chat\SiteChatInterface.java:[15,1770] boolean cannot be dereferenced

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\util\reflection\ObjectInitUtil.java:[20,69] sun.misc.Unsafe is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\util\reflection\ObjectInitUtil.java:[22,49] sun.misc.Unsafe is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\util\reflection\ObjectInitUtil.java:[22,66] sun.misc.Unsafe is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\util\SizeOf.java:[367,68] sun.misc.SharedSecrets is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\util\SizeOf.java:[370,80] sun.util.calendar.CalendarSystem is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\util\SizeOf.java:[371,93] sun.util.calendar.CalendarSystem is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\util\SizeOf.java:[371,68] sun.util.calendar.CalendarSystem is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\crypto\DataEncoder.java:[43,70] sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\crypto\DataEncoder.java:[51,60] sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\crypto\DataEncoder.java:[51,93] sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\reports\reportsIFS\RepairInitiator.java:[291,53] sun.misc.Launcher is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\cognos\Cognos8Exception.java:[73,16] com.sun.org.apache.xpath.internal.XPathAPI is Sun proprietary API and may be removed in a future release

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\cognos\Cognos8Exception.java:[94,16] com.sun.org.apache.xpath.internal.XPathAPI is Sun proprietary API and may be removed in a future release

[INFO] ------------------------------------------------------------------------

[DEBUG] Trace

org.apache.maven.BuildFailureException: Compilation failure

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:1205)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:1038)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:643)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

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:597)

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.CompilationFailureException: Compilation failure

at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)

at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)

at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

... 21 more

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 28 minutes 4 seconds

[INFO] Finished at: Sun Sep 11 23:40:14 IDT 2011

[INFO] Final Memory: 99M/989M

[INFO] -------------------------------------------------------

2 answers

Are you able to build this without clover, just using mvn clean compile ? At first look it appears you have synactical errors in the SiteChatInterface class.

{code}D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\velocity\contextelements\chat\SiteChatInterface.java:[15,1256] non-static variable java cannot be referenced from a static context

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\velocity\contextelements\chat\SiteChatInterface.java:[15,1260] boolean cannot be dereferenced

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\velocity\contextelements\chat\SiteChatInterface.java:[15,1556] non-static variable java cannot be referenced from a static context

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\velocity\contextelements\chat\SiteChatInterface.java:[15,1560] boolean cannot be dereferenced

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\velocity\contextelements\chat\SiteChatInterface.java:[15,1766] non-static variable java cannot be referenced from a static context

D:\workspace\build\9.7.0.0\target\clover\src\humanclick\pserv\velocity\contextelements\chat\SiteChatInterface.java:[15,1770] boolean cannot be dereferenced

{code}

Your SiteChatInterface is invalid (use of instance variables in static context for instance), and will not compile. FIx that and try again.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,108 views 6 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot