On 25 February 2011 22:58, Collins, Russell <rcoll...@corelogic.com> 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?