TeamCity
 
You are viewing the documentation for an earlier version of TeamCity.

maven

Last modified: 20 April 2023

Maven2 



This page contains reference information about the Maven2 Build Runner fields, and specific information about solving issues with mavenSurefireReporterIssue.

Solving the issue with Surefire XML Reporter



Some users complained about incorrect number of tests reported (see http://www.jetbrains.net/jira/browse/TW-586 and http://jira.codehaus.org/browse/SUREFIRE-122). This is caused by a bug in Surefire 2.2 used in Maven 2.0.4 by default. The bug is fixed in Surefire version 2.3.

To use the new plugin version locally for a single project, you need to modify the corresponding POM file. It must contain the following fragment within the project/build/plugins element.

<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.3</version> ... </plugin>