How to start cobertura during the mvn installation phase

I have the following plugin defined for cobertura as follows. I need to run mvn cobertura: cobertura to get a code coverage report. How to edit pom so that mvn install runs cobertura?

 <groupId>org.codehaus.mojo</groupId>
            <artifactId>cobertura-maven-plugin</artifactId>
            <version>2.6</version>
            <executions>
                <execution>
                    <phase>install</phase>
                    <goals>
                        <goal>clean</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
+4
source share
1 answer

Cobertura has its own life cycle. It fulfills all the goals that are necessary to ensure reporting on conservation in a specific manner. See: How to configure when cobertura tests run in maven-cobertura-plugin?

, cobertura, , , Maven:

http://mojo.codehaus.org/cobertura-maven-plugin/cobertura-mojo.html

is is IMO ( ).

0

All Articles