Unable to generate the code coverage report [Cannot assign configuration entry 'dataFileIncludes' with value '**/jacoco-unit.exec']

444 views
Skip to first unread message

Manjunath Davanam

unread,
Nov 6, 2019, 6:33:41 AM11/6/19
to JaCoCo and EclEmma Users
Unable to Generate the code coverage report. is my plugin config setup wrong? Can anyone help on this? 

Error Message: 

[ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.5:report-aggregate (report-aggregate) on project distribution: Unable to parse configuration of mojo org.jacoco:jacoco-maven-plugin:0.8.5:report-aggregate for parameter dataFileIncludes: Cannot assign configuration entry 'dataFileIncludes' with value '**/jacoco-unit.exec' of type java.lang.String to property of type java.util.List -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.


pom.xml

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.2</version>
<executions>
<execution>
<id>report-aggregate</id>
<phase>prepare-package</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
<configuration>
<dataFileIncludes>**/jacoco-unit.exec</dataFileIncludes>
<outputDirectory>${project.reporting.outputDirectory}/jacoco-aggregate</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>


Manjunath Davanam

unread,
Nov 6, 2019, 6:40:10 AM11/6/19
to JaCoCo and EclEmma Users
I couldn't able to generate coverage report by  aggregating all the modules

Evgeny Mandrikov

unread,
Nov 6, 2019, 2:13:07 PM11/6/19
to JaCoCo and EclEmma Users

Manjunath Davanam

unread,
Nov 7, 2019, 1:09:50 AM11/7/19
to jac...@googlegroups.com
Yes...

--
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/9e1581ef-08b4-447c-8f25-b492e91ea0ee%40googlegroups.com.


--
Regards,
Manjunath Davanam
Software Engineer @Ilimi
Mobile: +91 9743199181



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