|
This post has NOT been accepted by the mailing list yet.
Hi.
I'm using the sonar version 3.0, and have it confirmed to work with a example project. I now try to use sonar for a large company project, but Corbertura seams to have problem with a certain project module and suddenly freeze and I have to force a stop. (it uses a lot of CPU power during the freeze time, 16 hours) My initial idea was to increase memory, so I added this to the jenkins job "-Dsonar.cobertura.maxmem=512m" but same result. How can I proceed with this type of problem. - Upgrade sonar? - exclude corbertura for this module (how?) - other suggestions are very welcome Using: Maven 3.0.3 Sonar 3.0 Jenkins Sonar Plugin 1.8 ---- Log information below ------------------- INFO] --- cobertura-maven-plugin:2.5.1:instrument (default-cli) @ pReceiveRequest-module-xml --- [INFO] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Instrumenting 562 files to /cmbuilds/jenkins/aro/.jenkins/jobs/ARO_1_7_0_0_RB-ARTIFACTORY-EVAL-ExternalZone/workspace/pReceiveRequest/modules/xml/target/generated-classes/cobertura Cobertura: Saved information on 562 classes. Instrument time: 3706ms [INFO] Instrumentation was successful. [INFO] NOT adding cobertura ser file to attached artifacts list. [INFO] [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ pReceiveRequest-module-xml --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:2.3.1:testCompile (default-testCompile) @ pReceiveRequest-module-xml --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.5:test (default-test) @ pReceiveRequest-module-xml --- [INFO] Surefire report directory: /cmbuilds/jenkins/aro/.jenkins/jobs/ARO_1_7_0_0_RB-ARTIFACTORY-EVAL-ExternalZone/workspace/pReceiveRequest/modules/xml/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- There are no tests to run. Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] <<< cobertura-maven-plugin:2.5.1:cobertura (default-cli) @ pReceiveRequest-module-xml <<< [INFO] [INFO] --- cobertura-maven-plugin:2.5.1:cobertura (default-cli) @ pReceiveRequest-module-xml --- Sonar analysis completed: FAILURE Build step 'Sonar' changed build result to FAILURE Build step 'Sonar' marked build as failure Destroying 1 processes Destroying process.. Destroyed 1 processes [INFO] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Cobertura: Loaded information on 562 classes. [ERROR] Error in Cobertura Report generation: Unable to generate Cobertura Report for project. org.apache.maven.plugin.MojoExecutionException: Unable to generate Cobertura Report for project. at org.codehaus.mojo.cobertura.tasks.ReportTask.execute(ReportTask.java:93) at org.codehaus.mojo.cobertura.CoberturaReportMojo.executeReportTask(CoberturaReportMojo.java:228) at org.codehaus.mojo.cobertura.CoberturaReportMojo.executeReport(CoberturaReportMojo.java:348) at org.codehaus.mojo.cobertura.CoberturaReportMojo.executeReport(CoberturaReportMojo.java:247) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:93) at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:68) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:85) at org.sonar.maven3.Maven3PluginExecutor.concreteExecute(Maven3PluginExecutor.java:49) at org.sonar.batch.AbstractMavenPluginExecutor.execute(AbstractMavenPluginExecutor.java:49) at org.sonar.batch.AbstractMavenPluginExecutor.execute(AbstractMavenPluginExecutor.java:38) at org.sonar.batch.phases.InitializersExecutor.executeMavenPlugin(InitializersExecutor.java:73) at org.sonar.batch.phases.InitializersExecutor.execute(InitializersExecutor.java:60) at org.sonar.batch.phases.Phases.execute(Phases.java:90) at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143) at org.sonar.batch.bootstrap.Module.start(Module.java:83) at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115) at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110) at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110) at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105) at org.sonar.batch.bootstrap.Module.start(Module.java:83) at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:109) at org.sonar.batch.bootstrap.Module.start(Module.java:83) at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:72) at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:59) at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:143) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113) at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65) at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 16:24:11.231s [INFO] Finished at: Wed Jun 20 09:00:11 CEST 2012 [INFO] Final Memory: 51M/407M [INFO] ------------------------------------------------------------------------ [INFO] [09:00:12.071] Execute org.codehaus.mojo:cobertura-maven-plugin:2.5.1:cobertura done: 58529965 ms [INFO] [09:00:12.071] Execute maven plugin cobertura-maven-plugin done: 58529965 ms [INFO] [09:00:12.071] Initializer CoberturaMavenInitializer... [INFO] [09:00:12.071] Initializer CoberturaMavenInitializer done: 0 ms Finished: FAILURE |
| Powered by Nabble | Edit this page |
