> How do I use the plugin:download goal?  It says that I have 
> to specify 'artifactId' but I'm not sure how to do this (I'm 
> new to maven).

-DartifactId=maven-clover-plugin

> And then how do I run with -e?  Would that be  >maven -e clover  ?

yep

> As an aside, I'm also wondering why clover doesn't run by 
> default when I do maven jar or maven test or maven 
> site:generate.  I do have 
> <report>maven-clover-plugin</report>  in my reports section 
> of my project.xml.  It's a little confusing figuring out 
> which goals depend on which other goals.  How would I make it 
> so that clover always runs if I run the test goal?
> 

To make it run by default after maven jar, you need a postGoal in maven.xml:

<postGoal name="jar">
  <attainGoal name="clover" />
</postGoal>

See the user guide on how to set up maven.xml.

The report tag you mentioned will make sure it is always generated when you
run site:generate.

- Brett

Reply via email to