Hi Ravi,
I am able to use the custom listeners.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/testng-${testtype}.xml</suiteXmlFile>
</suiteXmlFiles>
<configuration>
<skipTests>${skipTests}</skipTests>
</configuration>
<properties>
<property>
<name>usedefaultlisteners</name>
<value>false</value>
</property>
<property>
<name>listener</name>
<value>org.uncommons.reportng.HTMLReporter,org.uncommons.reportng.JUnitXMLReporter</value>
</property>
</properties>
</configuration>
</plugin>
If we see the above entries, I am using
org.uncommons.reportng.HTMLReporter and
org.uncommons.reportng.JUnitXMLReporter and it seems to work fine.
I guess you need to set usedefaultlisteners to false.
Please check the section(Using custom listeners and reporters) at this
link
http://maven.apache.org/plugins/maven-surefire-plugin/examples/testng.html.
Let me know if you have any issues.
~Subramanyam
> *~ Ravi Saurabh*
Subramanyam