Can I specify the clover database on the command line?

I can create a clover.db through our 'build' job.  To make this db available to subsequent Jenkins jobs, I copy this database file to the /tmp folder. 

Since I can specify the license file on the command line using -Dmaven.clover.licenseLocation=/path/to/license, I assumed I would be able to specify the clover.db file on the command line such as -Dmaven.clover.cloverDatabase=/path/to/clover.db

However, when I run an integration test job using the following command line.  

mvn -Dmaven.clover.licenseLocation=/path/to/license -Dmaven.clover.cloverDatabase=<path to db> -Pintegration clover2:clover 

I'll see at the bottom of the output. 

'No clover database specified no report generated'

 

I don't understand.

 

 

1 answer

0 vote

This should work. Clover searches for a database in the following locations:

  • first it looks for a single module database
    • as specified in the -Dmaven.clover.cloverDatabase
    • or in its default location (target/clover/clover.db)
  • next it looks for a merged database
    • as specified in the -Dmaven.clover.cloverMergeDatabase
    • or in its default location (target/clover/cloverMerge.db)

If file is not found in none of these locations, it prints a warning "No Clover database found, skipping report generation".

 

Please run a build with debug logging (mvn -X) and check if you don't define the -Dmaven.clover.cloverDatabase twice or you don't override it.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

143 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you