'Skipped TestNG test case count is wrong while running test cases using Maven command

I am using mvn clean test to trigger the TestNG test cases for my automation framework. I have implemented TestNG test retry mechanism in the framework. I have intentionally failed one test case to check the mechanism. When i used the maven command the skiped test case count is displayed as O instead of 1 TestNG version-7.5 Maven version-3.6.3 Jdk version -8



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source