Are you sure this is true?  I just finished writing an EMMA plugin
(based on the Cobertura code), and I only needed the node in the
<reporting> section for it to work (when running mvn site from the
command line).  I found I could even provide configuration properties
for the instrumentation mojo in the reporting section and it worked
correctly.  I would imagine that the Cobertura plugin works the same
(despite the fact that its docs don't say this).

..David..
 

-----Original Message-----
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 25, 2007 10:15 PM
To: Maven Users List
Subject: Re: How can i run clover and cobertura permanantly?

No, this is not the correct way.

You need both the node in the <reporting> section as well as the
instrumentation node in the <build> section.

Additionally, you should run "mvn package". By specifying the cobertura
plugin in the pom, it will automatically run cobertura at the proper
time.

Wayne

On 3/25/07, Baz <[EMAIL PROTECTED]> wrote:
> Fay, Vincent,
>
> Sorry for the repeated questions. I am just new to maven. Yes i am 
> adding the following lines, then run "mvn cobertura:cobertura". Is it 
> the correct way? Is there a goal that include build, report and 
> deploy?
>
> The lines added to pom.xml:
>
>   <reporting>
>     <plugins>
>       <plugin>
>         <groupId>org.codehaus.mojo</groupId>
>         <artifactId>cobertura-maven-plugin</artifactId>
>       </plugin>
>     </plugins>
>   </reporting>
>
> Results:
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> There are no tests to run.
>
> Results :
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
>
> [INFO] [cobertura:cobertura]
> [INFO] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT 
> file
> Cobertura: Loaded information on 1 classes.
> Report time: 250ms
>
> [INFO] Cobertura Report generation was successful.
> [INFO] 
> ----------------------------------------------------------------------
> --
> [INFO] BUILD SUCCESSFUL
> [INFO] 
> ----------------------------------------------------------------------
> --
> [INFO] Total time: 12 seconds
> [INFO] Finished at: Sun Mar 25 20:59:29 PDT 2007 [INFO] Final Memory: 
> 4M/8M [INFO] 
> ----------------------------------------------------------------------
> --
>
> On 3/25/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > As suggested by Vincent, the plugin docs are the place to find the 
> > answers you seek...
> >
> > http://mojo.codehaus.org/cobertura-maven-plugin/usage.html
> > http://maven.apache.org/plugins/maven-clover-plugin/usage.html
> >
> > Wayne
> >
> > On 3/25/07, Baz <[EMAIL PROTECTED]> wrote:
> > > Vincent,
> > >
> > > Thank you for your reply. I looked through the page, got some idea

> > > in including new plugin. However, I will need to know the correct 
> > > groupId, artifactId right? Cobertura for m2 seems to be in another

> > > website, http://repo1.maven.org/maven2/cobertura/cobertura/
> > >
> > > So my question now is: What should i put into pom.xml in order to 
> > > download the right bits? How can i find out?
> > >
> > > Thanks.
> > >
> > > B.
> > >
> > > On 3/25/07, Vincent Massol <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > On Mar 25, 2007, at 11:47 PM, Baz wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > How can I run test code coverage tools as part of my build? 
> > > > > What changes do i need to make in the pom.xml?
> > > > >
> > > > > I ran "mvn cobertura:cobertura" and seems like it is 
> > > > > generating the reports.
> > > > >
> > > > > Please advise.
> > > > >
> > > >
> > > > You can check the plugin documentation for example :)
> > > >
> > > > http://maven.apache.org/plugins/index.html
> > > >
> > > > -Vincent
> > > >
> > > > ----------------------------------------------------------------
> > > > ----- To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > ------------------------------------------------------------------
> > > --- To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to