我收到了 Selenium Automation 的 LifecyclePhaseNotFoundException

问题描述 投票:0回答:1

我在运行“mvn clean verify -P it -Dit.test=AA_SetupIT”时收到 Selenium Automation 的LifecyclePhaseNotFoundException,按照以下步骤进行检查

 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.

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

maven selenium-webdriver automation ui-automation maven-plugin
1个回答
0
投票

按照提到的步骤执行以下操作,它对我有帮助

 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>
© www.soinside.com 2019 - 2024. All rights reserved.