Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 Sign up to answer
TAGS
Community showcase
Published in Opsgenie

Investigate deployment-related incidents with Bamboo and Opsgenie together

Back in April of last year one of the major product announcements from Opsgenie was the launch of the Incident investigation view which created a deep connection between Bitbucket and Opsgenie, empow...

104 views 1 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you