What is the use of the Maven Surefire Plugin? I can not find a proper example.
Better you start with https://maven.apache.org/surefire/maven-surefire-plugin/
In short link says:
The Surefire Plugin is used during the test phase of the build lifecycle to execute the unit tests of an application. It generates reports in two different file formats Plain text files (.txt) XML files (.xml)