[
https://issues.apache.org/jira/browse/SUREFIRE-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15055055#comment-15055055
]
ASF GitHub Bot commented on SUREFIRE-1194:
------------------------------------------
Github user Tibor17 commented on the pull request:
https://github.com/apache/maven-surefire/pull/107#issuecomment-164279434
I have reproduced the issue and the error is really true because the
`testng-5.14.4.jar` really does not contain the class
`com/beust/jcommander/ParameterException`.
Please extract your JAR file and you will see that the class is missing.
There are two Maven repositories where you can find such Maven artifact:
1. Maven local repository
2. `surefire-setup-integration-tests/target/it-repo`
Sometimes it is useful to delete artifacts `org/testng/testng` from Maven
local repository.
Please make a clone from your GitHub as I did, launch tests as I did and
you can then compare the sources (maybe something was not committed):
1. `$ mvn -V` prints
`Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da;
2013-02-19 14:51:28+0100)`
See environment variable `M2_HOME`.
2. delete artifacts `org/testng/testng` from Maven local repository
3. make the clone in folder SUREFIRE-1194
`$ git clone -b surefire-1194 https://github.com/juherr/maven-surefire.git
SUREFIRE-1194`
`cd SUREFIRE-1194`
4. edit `surefire-integration-tests/pom.xml` and replace `*IT*` with
`CheckTestNgListenerReporterIT`.
5. run `$ mvn -P run-its install`
> reporter argument does not work for TestNG
> ------------------------------------------
>
> Key: SUREFIRE-1194
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1194
> Project: Maven Surefire
> Issue Type: Bug
> Components: TestNG support
> Affects Versions: 2.19
> Reporter: Testo Nakada
> Assignee: Tibor Digana
> Fix For: 2.19.1
>
>
> TestNG plugin seems to map -reporter command line parameter to reporterslist
> which was removed in TestNG project since 2010
> (a4779524b59330e98ee596c5faa43ae1b33ff844). Therefore, this configuration has
> stopped working since then. The configuration mentioned in
> http://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html#Using_Custom_Listeners_and_Reporters
> does not work as expected.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)