提问者:小点点

我正在获取Selenium自动化的生命周期PhaseNotFoundException


我在运行“mvn清洁验证-P it-Dit. test=AA_SetupIT”时获得了Selenium Automation的生命周期NoFoundException,并按照步骤进行了检查

 1. https://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException.
 2. https://stackoverflow.com/questions/25397717/maven-life-cycle-exception.
 3. https://stackoverflow.com/questions/38930469/unknown-lifecycle-phase-mvn-you-must-specify-a-valid-lifecycle-phase-or-a-goa
 4. mvn install -DskipTests
 5. Clean project
 6. maven update
 7. Download the repo again and run.

-还有其他建议吗?-谢谢你的帮助


共1个答案

匿名用户

按照上述步骤执行以下操作,它帮助了我

 1. Download the repo and import project
 2. Restart IDE
 3. Clean project
 4. maven update from IDE
Now from Terminal
 5. mvn compiler:compile
 6. mvn org.apache.maven.plugins:maven-compiler-plugin:compile
 7. mvn org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
 8. maven clean install
 9. mvn install -DskipTests
 10. Run project from terminal : mvn clean verify -P it -Dit.test=AA_SetupIT,<Class name without space>