The Apache Maven team is pleased to announce the release of the
Apache Maven Surefire Plugin, version 2.21.0.

The release contains 33 bug fixes.
Again we received contributions from the community in form of bug reports
and bug fixes.
Thank you and keep them coming!

You should specify the version in your project’s plugin configuration:

1
2
3
4
5

  org.apache.maven.plugins
  maven-surefire-plugin
  2.21.0

or for failsafe:

1
2
3
4
5

  org.apache.maven.plugins
  maven-failsafe-plugin
  2.21.0

or for surefire-report:

1
2
3
4
5

  org.apache.maven.plugins
  maven-surefire-report-plugin
  2.21.0

Release Notes – Maven Surefire – Version 2.21.0

Bugs:

  • SUREFIRE-1372 – Rerunning failing tests fails in combination with Description#createSuiteDescription
  • SUREFIRE-1422 – Forking fails on Linux if /bin/ps isn’t available
  • SUREFIRE-1424 – javax.transaction.TransactionManager not visible with Java9
  • SUREFIRE-1439 – NullPointerException on JDK10
  • SUREFIRE-1443 – surefire report: broken links with inner classes
  • SUREFIRE-1445 – Properties from configuration POM are not passed to Provider on JDK 9
  • SUREFIRE-1450 – TestNG Listener aren’t working from Property Tag in POM.xml With JDK9
  • SUREFIRE-1451 – Surefire Booter compatibility with NetBSD ps(1) output
  • SUREFIRE-1452 – Support filtering of tests from Base Class (TestNG)
  • SUREFIRE-1475 – PpidChecker.windows() assumes wmic is on the path

Improvements:

  • SUREFIRE-1183 – Custom Test Report Titles and Descriptions
  • SUREFIRE-1262 – Add modulepath support
  • SUREFIRE-1416 – maven-surefire-parser: add new method isError in ReportTestCase
  • SUREFIRE-1435 – Improve Thread Dump. Use prefix “surefire-forkedjvm” in daemon Threads in forked JVM
  • SUREFIRE-1448 – Clarified specifying multiple categories for JUnit
  • SUREFIRE-1453 – Allow to specify non existant classes as “groups”
  • SUREFIRE-1454 – Speedup Standard Output if Tests
  • SUREFIRE-1491 – LocationManager injected in MOJO unables plugin to run in JDK 1.6

Test:

  • SUREFIRE-1437 – Improve unit tests. Call PID parser on all platforms in SystemUtilsTest.

Wish:

Tasks:

  • SUREFIRE-1455 – JaCoCo on integration tests
  • SUREFIRE-1461 – UnicodeTestNamesIT should be able to run multiple times
  • SUREFIRE-1463 – integration tests should run on the top of JDK 9
  • SUREFIRE-1471 – Too long Windows path cause CI issues. Renamed surefire-intergation-tests to surefire-its.
  • SUREFIRE-1472 – Multibranch Pipeline supports JDK 7-10 Maven 3.2-3.5 Linux Windows
  • SUREFIRE-1481 – Surefire1295AttributeJvmCrashesToTestsIT should be Parameterized test instead of using Theories runner
  • SUREFIRE-1482 – Obsolete workaround with commons-lang3 in project unit tests
  • SUREFIRE-1484 – maven-clean-plugin should be used in integration test resource junit-pathWithUmlaut
  • SUREFIRE-1485 – surefire-shadefire project should not be deployed in Maven Central
  • SUREFIRE-1486 – maven-failsafe-plugin does not use JUnit adapter for JUnit4 annotations and TestNG providers do not have maven-surefire-plugin config in POM
  • SUREFIRE-1488 – Native library in Surefire1295AttributeJvmCrashesToTestsIT caused unstable test
  • SUREFIRE-1489 – Implement different HTTP ports in ITs and zip() in jenkinsfile

Dependency upgrade:

SUREFIRE-1434 – Upgrade PowerMock@Java9 to Version 2.0.0-beta.5

Enjoy,

-The Apache Maven team