Maven Error

灰太狼 2022-09-20 12:41 115阅读 0赞

现象:在maven打包构建的时候出现这个,导致构建单元测试失败,但是只是跑个testng是可以的

getKeyAll(com.exec.NewTest):org.testng.ITestNGMethod.getConstructorOrMethod()Lorg/testng/internal/ConstructorOrMethod;

解决:

更换testng的版本:

  1. <dependency>
  2. <groupId>testng</groupId>
  3. <artifactId>testng</artifactId>
  4. <version>5.12</version>
  5. <scope>test</scope>
  6. </dependency>

  1. <dependency>
  2. <groupId>org.testng</groupId>
  3. <artifactId>testng</artifactId>
  4. <version>6.8</version>
  5. </dependency>

发表评论

表情:
评论列表 (有 0 条评论,115人围观)

还没有评论,来说两句吧...

相关阅读

    相关 Maven Error

    现象:在maven打包构建的时候出现这个,导致构建单元测试失败,但是只是跑个testng是可以的 getKeyAll(com.exec.NewTest):org.testng