mam-dev / foss-parent

Parent POM for 1-and-1 open source projects using Maven.
http://1and1.github.io/foss-parent/github-report.html
Apache License 2.0
10 stars 4 forks source link

Include definitions for jacoco for coverage. #18

Closed mfriedenhagen closed 11 years ago

mfriedenhagen commented 11 years ago

By default, jacoco is now used for code coverage. If you want to use cobertura instead, you have to include the following in your pom:

<properties>
    <jacoco.skip>true</jacoco.skip>
</properties>

and

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>${cobertura-maven-plugin.version}</version>
                <configuration>
                    <formats>
                        <format>xml</format>
                        <format>html</format>
                    </formats>
                </configuration>
            </plugin>
        </plugins>
    </reporting>