Thank you for your help. I am running mvn site. I have also found a solution to my issue. Basically, I run the plugin during the "package" phase. This link is where I got my information
http://hedemark.net/blog/?cat=4 Russell Collins Sr. Software Engineer CoreLogic Spatial Solutions "Do or do not, there is no try." - Yoda -----Original Message----- From: Hilco Wijbenga [mailto:[email protected]] Sent: Monday, February 28, 2011 11:23 AM To: Maven Users List Cc: Collins, Russell Subject: Re: [Cobertura] Cobertura Report Not Showing On 25 February 2011 22:58, Collins, Russell <[email protected]> wrote: > > I am not able to get this plugin to work properly. The online documentation > is terrible. When I run the plugin, I can get the results from the clean and > check goals. However, it seems as though the cobertura goal isn't even > running. Here is my xml: > > Plugin section > ... > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>cobertura-maven-plugin</artifactId> > <version>2.4</version> > <executions> > <execution> > <goals> > <goal>clean</goal> > <goal>cobertura</goal> > <goal>check</goal> > </goals> > </execution> > </executions> > </plugin> > > ... > > Report section > > ... > <reporting> > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>cobertura-maven-plugin</artifactId> > <configuration> > <formats> > <format>html</format> > <format>xml</format> > </formats> > <outputDirectory>target/site/cobertura</outputDirectory> > </configuration> > </plugin> > </plugins> > </reporting> > ... > > Once again, the clean and check seem to be functioning but there is no site > created in any format when this is run. Please help and update the online > documentation. Thanks. I just have <reporting> <plugins> <snip/> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.4</version> <configuration> <formats> <format>html</format> <format>xml</format> </formats> </configuration> </plugin> </plugins> </reporting> And it all works fine. You are running "mvn site", right? *************************** This message may contain confidential or proprietary information intended only for the use of the addressee(s) named above or may contain information that is legally privileged. If you are not the intended addressee, or the person responsible for delivering it to the intended addressee, you are hereby notified that reading, disseminating, distributing or copying this message is strictly prohibited. If you have received this message by mistake, please immediately notify us by replying to the message and delete the original message and any copies immediately thereafter. Thank you. ****************************
