[ https://issues.apache.org/jira/browse/SUREFIRE-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16307802#comment-16307802 ]
Krishnan Mahadevan commented on SUREFIRE-1450: ---------------------------------------------- [~tibor17] - Here's what I understand is the problem. Scenario : User is using a TestNG xml suite file, that does not contain any references to any listeners. User specifies the listener to be used via the surefire configuration through the *property* tag (not via the suite xml file). When user runs with JDK8, the listener gets invoked. When user runs the same project with JDK9, the listener does not get invoked. just to check if this problem can be simulated without surefire plugin, user did the following User creates a suite xml file that doesnt contain any listener references. User runs the tests directly and specifies the listeners from command line using *java -cp org.testng.TestNG testng.xml -listeners poc.config.MyCustomListener* Result : Listener gets invoked. User is on JDK9. [~hammadhost] - Does that summarise your problem? > TestNG Listener aren't working from Property Tag in POM.xml With JDK9 > --------------------------------------------------------------------- > > Key: SUREFIRE-1450 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1450 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Failsafe Plugin, Maven Surefire Plugin, TestNG > support > Affects Versions: 2.20.1 > Environment: macOS + Ubuntu, JDK9 > Reporter: Hammad > Assignee: Tibor Digana > Labels: newbie > > TestNG Listener are not working when using: > Maven = Apache Maven 3.5.2 > JDK9 > Here is relevant repo: https://github.com/HammadHost/poc_testng_surefire > I executed it with jdk8 in same environment listener did work, but they > aren't working with JDK9 > FYI: > https://stackoverflow.com/questions/47560412/maven-surefire-is-not-respecting-testng-listeners-in-property-tag -- This message was sent by Atlassian JIRA (v6.4.14#64029)