Maven Compilation error [package org.testng.annotations does not exist]

后端 未结 9 1358
陌清茗
陌清茗 2020-12-10 11:09

I\'m pretty new to maven and I want to run my test classes using maven. I have generated the testng.xml and I have created the POM.xml file also. But when you run the

9条回答
  •  时光取名叫无心
    2020-12-10 11:55

    Below solution works for me-

    Please add below dependencies in your pom.xml

    
        org.testng
        testng
        7.0.0
        test
    
    
    
        com.google.guava
        guava
        17.0
    
    

提交回复
热议问题