No Clover databases found in children projects

Mark Thomas April 24, 2018

Hi

I have a parent project containing a pom.xml with one modules entry:

<module>commercial</module>

The parent project contains no code, other than a pom.xml.

The commercial module (sub-project in a folder called 'commercial') contains only groovy code.

 

If I execute:

mvn -e clean org.openclover:clover-maven-plugin:4.2.1:setup test org.openclover:clover-maven-plugin:4.2.1:aggregate org
openclover:clover-maven-plugin:4.2.1:clover

from the 'commercial' folder then I get a Clover report.

 

If I execute the same command from the parent folder then I get warnings:

[WARNING] No Clover databases found in children projects, no merge done. Run a build with debug logging for more details.

[WARNING] No Clover database found, skipping report generation

 

Thanks

 

Mark

 

 

1 answer

1 vote
Grzegorz Lewandowski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 25, 2018

It seems like instrumentation didn't kick in. Please turn on debug logs and check if Clover does instrument your sources. Database should be generated along with sources instrumentation.

Mark Thomas April 25, 2018

Hi

  • When I execute the Maven clover commands from the parent folder no groovy code is detected. The log shows:

[INFO] No Clover instrumentation done on source files in: [C:\Users\abc\myapp\application\src\main\java] as no matching sources files found (JAVA_LANGUAGE)
[DEBUG] excludes patterns = []
[DEBUG] includes patterns = [**/*.java, **/*.groovy]
[DEBUG] excludes patterns = []
[DEBUG] includes patterns = [**/*.java, **/*.groovy]
[DEBUG] excludes patterns = []
[DEBUG] includes patterns = [**/*.java, **/*.groovy]
[INFO] No Clover instrumentation done on source files in: [C:\Users\abc\myapp\application\src\test\java] as no matching sources files found (JAVA_LANGUAGE)
[DEBUG] excludes patterns = []
[DEBUG] includes patterns = [**/*.java, **/*.groovy]
[DEBUG] excludes patterns = []
[DEBUG] includes patterns = [**/*.java, **/*.groovy]

  • However, if I try from the 'application' folder then the groovy code is detected:

[INFO] No Clover instrumentation done on source files in: [C:\Users\abc\myap\application\src\main\java] as no matching sources files found (JAVA_LANGUAGE)
[DEBUG] excludes patterns = []
[DEBUG] includes patterns = [**/*.java, **/*.groovy]
[DEBUG] including files for instrumentation = [com\def\MyApplication.groovy, com\def\services\MyServiceImpl.groovy]
[DEBUG] excludes patterns = []
[DEBUG] includes patterns = [**/*.java, **/*.groovy]
[DEBUG] excluding files from instrumentation = []
[DEBUG] excludes patterns = []
[DEBUG] includes patterns = [**/*.java, **/*.groovy]
[INFO] No Clover instrumentation done on source files in: [C:\Users\abc\myapp\application\src\test\java] as no matching sources files found (JAVA_LANGUAGE)
[DEBUG] excludes patterns = []
[DEBUG] includes patterns = [**/*.java, **/*.groovy]
[DEBUG] including files for instrumentation = [com\def\MyApplicationSpec.groovy,com\def\services\MyServiceImplSpec.groovy]
[DEBUG] excludes patterns = []
[DEBUG] includes patterns = [**/*.java, **/*.groovy]
[DEBUG] excluding files from instrumentation = []

Thanks

Mark

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events