Error generating jacoco-maven-plugin:0.8.3:report report

106 views
Skip to first unread message

pothuri hari prasad

unread,
Apr 1, 2019, 4:02:51 AM4/1/19
to JaCoCo and EclEmma Users
when i run mvn site command the following error is occured, can anyone please help me how to resolve this

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.7.1:site (default-site) on project metrics-apptuit-dropwizard: Error generating jacoco-maven-plugin:0.8.3:report report
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error generating jacoco-maven-plugin:0.8.3:report report
    at org.apache.maven.plugins.site.render.SiteMojo.execute (SiteMojo.java:155)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.apache.maven.reporting.MavenReportException: Error while creating report: Error while analyzing /home/hari/Desktop/metrics-apptuit/dropwizard/target/classes/ai/apptuit/metrics/dropwizard/ApptuitReporterFactory$RegexStringMatchingStrategy.class.
    at org.jacoco.maven.AbstractReportMojo.executeReport (AbstractReportMojo.java:183)
    at org.apache.maven.reporting.AbstractMavenReport.generate (AbstractMavenReport.java:190)
    at org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument (ReportDocumentRenderer.java:230)
    at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render (DefaultSiteRenderer.java:349)
    at org.apache.maven.plugins.site.render.SiteMojo.renderLocale (SiteMojo.java:198)
    at org.apache.maven.plugins.site.render.SiteMojo.execute (SiteMojo.java:147)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: java.io.IOException: Error while analyzing /home/hari/Desktop/metrics-apptuit/dropwizard/target/classes/ai/apptuit/metrics/dropwizard/ApptuitReporterFactory$RegexStringMatchingStrategy.class.
    at org.jacoco.core.analysis.Analyzer.analyzerError (Analyzer.java:168)
    at org.jacoco.core.analysis.Analyzer.analyzeClass (Analyzer.java:140)
    at org.jacoco.core.analysis.Analyzer.analyzeClass (Analyzer.java:163)
    at org.jacoco.core.analysis.Analyzer.analyzeAll (Analyzer.java:199)
    at org.jacoco.core.analysis.Analyzer.analyzeAll (Analyzer.java:232)
    at org.jacoco.maven.ReportSupport.processProject (ReportSupport.java:200)
    at org.jacoco.maven.ReportSupport.processProject (ReportSupport.java:183)
    at org.jacoco.maven.ReportMojo.createReport (ReportMojo.java:73)
    at org.jacoco.maven.AbstractReportMojo.executeReport (AbstractReportMojo.java:180)
    at org.apache.maven.reporting.AbstractMavenReport.generate (AbstractMavenReport.java:190)
    at org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument (ReportDocumentRenderer.java:230)
    at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render (DefaultSiteRenderer.java:349)
    at org.apache.maven.plugins.site.render.SiteMojo.renderLocale (SiteMojo.java:198)
    at org.apache.maven.plugins.site.render.SiteMojo.execute (SiteMojo.java:147)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: java.lang.IllegalStateException: Cannot process instrumented class ai/apptuit/metrics/dropwizard/ApptuitReporterFactory$RegexStringMatchingStrategy. Please supply original non-instrumented classes.
    at org.jacoco.core.internal.instr.InstrSupport.assertNotInstrumented (InstrSupport.java:203)
    at org.jacoco.core.internal.analysis.ClassAnalyzer.visitField (ClassAnalyzer.java:126)
    at org.objectweb.asm.ClassVisitor.visitField (ClassVisitor.java:287)
    at org.objectweb.asm.ClassReader.readField (ClassReader.java:897)
    at org.objectweb.asm.ClassReader.accept (ClassReader.java:674)
    at org.objectweb.asm.ClassReader.accept (ClassReader.java:391)
    at org.jacoco.core.analysis.Analyzer.analyzeClass (Analyzer.java:122)
    at org.jacoco.core.analysis.Analyzer.analyzeClass (Analyzer.java:138)
    at org.jacoco.core.analysis.Analyzer.analyzeClass (Analyzer.java:163)
    at org.jacoco.core.analysis.Analyzer.analyzeAll (Analyzer.java:199)
    at org.jacoco.core.analysis.Analyzer.analyzeAll (Analyzer.java:232)
    at org.jacoco.maven.ReportSupport.processProject (ReportSupport.java:200)
    at org.jacoco.maven.ReportSupport.processProject (ReportSupport.java:183)
    at org.jacoco.maven.ReportMojo.createReport (ReportMojo.java:73)
    at org.jacoco.maven.AbstractReportMojo.executeReport (AbstractReportMojo.java:180)
    at org.apache.maven.reporting.AbstractMavenReport.generate (AbstractMavenReport.java:190)
    at org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument (ReportDocumentRenderer.java:230)
    at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render (DefaultSiteRenderer.java:349)
    at org.apache.maven.plugins.site.render.SiteMojo.renderLocale (SiteMojo.java:198)
    at org.apache.maven.plugins.site.render.SiteMojo.execute (SiteMojo.java:147)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)


my pom.xml file is as follows:-

<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ai.apptuit</groupId>
<artifactId>metrics-apptuit</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>metrics-apptuit</name>
<url>https://github.com/ApptuitAI/metrics-apptuit/</url>
<inceptionYear>2017</inceptionYear>
<scm>
<url>https://github.com/ApptuitAI/metrics-apptuit</url>
<connection>scm:git:git://github.com/ApptuitAI/metrics-apptuit.git</connection>
<developerConnection>scm:git:g...@github.com:ApptuitAI/metrics-apptuit.git</developerConnection>
</scm>
<issueManagement>
<url>https://github.com/ApptuitAI/metrics-apptuit/issues</url>
<system>GitHub Issues</system>
</issueManagement>
<licenses>
<license>
<name>Apache 2.0</name>
<url>https://github.com/ApptuitAI/metrics-apptuit/blob/master/LICENSE</url>
</license>
</licenses>

<distributionManagement>
<repository>
<id>bintray-metrics-apptuit</id>
<name>metrics-apptuit</name>
<url>https://api.bintray.com/maven/apptuitai/maven/metrics-apptuit/;publish=1</url>
</repository>
</distributionManagement>

<modules>
<module>client</module>
<module>dropwizard</module>
<module>micrometer-registry-apptuit</module>
</modules>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>

<!-- Aliases -->
<built.jar.path>${project.build.directory}/${project.build.finalName}.jar</built.jar.path>

<jacoco.includes>ai/apptuit/**/*</jacoco.includes>
<jacoco.rt.jar.path>${project.build.directory}/jacoco-agent-rt.jar</jacoco.rt.jar.path>
<jacoco.dest.path>${project.build.directory}/jacoco.exec</jacoco.dest.path>
<jacoco.agent.opts>destfile=${jacoco.dest.path},includes=${jacoco.includes}</jacoco.agent.opts>

<!-- Debug flags -->
<!-- (comment the blank tag to enable the debug flag) -->
<jvm.debug.options>
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5050
</jvm.debug.options>
<jvm.debug.options/>


<!-- Version Properties -->
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<java.version>1.8</java.version>
<maven.version>3.2</maven.version>
<surefire.version>2.21.0</surefire.version>
<junit.version>4.12</junit.version>
<powermock.version>1.7.4</powermock.version>
<jacoco.version>0.8.3</jacoco.version>
<metrics.version>3.2.6</metrics.version>

<!-- Acceptance Criteria -->
<enforce.code.style>false</enforce.code.style>
<ignore.license.checks>false</ignore.license.checks>
<enforce.findbugs>true</enforce.findbugs>
<minimum.complexity.coverage>0.50</minimum.complexity.coverage>
<minimum.instruction.coverage>0.80</minimum.instruction.coverage>
<skipTests>false</skipTests>
</properties>

<build>

<plugins>

<!-- Plugins for post compile phase -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>

<executions>
<execution>
<id>default-instrument</id>
<goals>
<goal>instrument</goal>
</goals>
</execution>
<execution>
<id>default-restore-instrumented-classes</id>
<goals>
<goal>restore-instrumented-classes</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>${jacoco.dest.path}</dataFile>
</configuration>
</execution>
<execution>
<id>default-check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>COMPLEXITY</counter>
<value>COVEREDRATIO</value>
<minimum>${minimum.complexity.coverage}</minimum>
</limit>
<limit>
<counter>INSTRUCTION</counter>
<value>COVEREDRATIO</value>
<minimum>${minimum.instruction.coverage}</minimum>
</limit>
</limits>
</rule>
</rules>
<skip>${skipTests}</skip>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.7.1</version>
</plugin>
<!-- Plugins for test phase -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.version}</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit4</artifactId>
<version>${surefire.version}</version>
</dependency>
</dependencies>
<configuration>
<argLine>
${jvm.debug.options}
</argLine>
<systemPropertyVariables>
<jacoco-agent.destfile>${jacoco.dest.path}</jacoco-agent.destfile>
</systemPropertyVariables>
</configuration>
</plugin>

<!-- Plugins for package phase -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>generate-sources-jar</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- Plugins for verify phase -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.0.0</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>8.6</version>
</dependency>
</dependencies>
<configuration>
<configLocation>google_checks.xml</configLocation>
<encoding>UTF-8</encoding>
<logViolationsToConsole>true</logViolationsToConsole>
<failOnViolation>${enforce.code.style}</failOnViolation>
<violationSeverity>warning</violationSeverity>
<outputFile>${project.build.directory}/reports/checkstyle-results-java.xml</outputFile>
</configuration>
<executions>
<execution>
<id>java-style-check</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.12</version>
<configuration>
<ignoreErrors>${ignore.license.checks}</ignoreErrors>
<reportStyle>xml</reportStyle>
<reportFile>${project.build.directory}/reports/license-check-results.xml</reportFile>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.5</version>
<configuration>
<xmlOutput>true</xmlOutput>
<effort>Max</effort>
<failOnError>${enforce.findbugs}</failOnError>
<includeTests>false</includeTests>
<xmlOutputDirectory>${project.build.directory}/reports/</xmlOutputDirectory>
<outputDirectory>${project.build.directory}/reports/</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>

<!--Plugins for site phase -->


<!-- Plugins for deploy phase -->
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<updateReleaseInfo>true</updateReleaseInfo>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.9</version>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.0</version>
<reportSets>
<reportSet>
<id>default</id>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jdepend-maven-plugin</artifactId>
<version>2.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<configuration>
<configLocation>google_checks.xml</configLocation>
<encoding>UTF-8</encoding>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>checkstyle</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.12</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.20.1</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<configuration>
<includes>
<include>${jacoco.includes}</include>
</includes>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>report</report>
</reports>
</reportSet>
</reportSets>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
<version>2.4</version>
<configuration>
<tagListOptions>
<tagClasses>
<tagClass>
<displayName>Todo List</displayName>
<tags>
<tag>
<matchString>todo</matchString>
<matchType>ignoreCase</matchType>
</tag>
<tag>
<matchString>FIXME</matchString>
<matchType>ignoreCase</matchType>
</tag>
</tags>
</tagClass>
</tagClasses>
</tagListOptions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.8</version>
<reportSets>
<reportSet>
<reports>
<report>pmd</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<effort>Max</effort>
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.5</version>
<reportSets>
<reportSet>
<reports>
<report>dependency-updates-report</report>
<report>plugin-updates-report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
</project>





Marc Hoffmann

unread,
Apr 1, 2019, 4:19:41 AM4/1/19
to jac...@googlegroups.com
Hi,

the error message in the stack trace explains the problem: 

Cannot process instrumented class ai/apptuit/metrics/dropwizard/ApptuitReporterFactory$RegexStringMatchingStrategy. Please supply original non-instrumented classes.

You create the report on the (still) instrumented classes.

The reason is that you create the report in a too early phase (default is verify):

<execution>
<id>report</id>
<phase>prepare-package</phase>


You might study this working example for offline instrumentation:


Alternatively you might drop offline instrumentation, which is not recommended anyways.

Regards,
-marc



--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/05416286-7e52-4c36-9383-7e8a65dfb5df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

pothuri hari prasad

unread,
Apr 1, 2019, 5:43:23 AM4/1/19
to JaCoCo and EclEmma Users
I removed the offline instrumentation and it is not generating the jacoco report in the site command
so can you please elaborate on the solution @Marc R. Hoffmann

Evgeny Mandrikov

unread,
Apr 1, 2019, 6:51:52 AM4/1/19
to JaCoCo and EclEmma Users

On Monday, April 1, 2019 at 11:43:23 AM UTC+2, pothuri hari prasad wrote:
I removed the offline instrumentation and it is not generating the jacoco report in the site command
so can you please elaborate on the solution @Marc R. Hoffmann

You use PowerMock (which is bad on its own, but that's another story), which is incompatible with on-the-fly instrumentation, and I guess that's why you use offline instrumentation.

As Marc said the error message in the stack trace explains the problem:

Cannot process instrumented class ai/apptuit/metrics/dropwizard/ApptuitReporterFactory$RegexStringMatchingStrategy. Please supply original non-instrumented classes.

You create the report on the (still) instrumented classes. Why so? because execution of "mvn site" on your project executes everything up to "test" phase, which includes "instrument", but doesn't include "restore-instrumented-classes" that is bound to "package" phase by default. If there is no way to avoid this execution, then just bind "restore-instrumented-classes" to phase "test".

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages