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

No Clover databases found in children projects

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

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.

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
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

464 views 6 18
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