How to fix My note local Maven build error due to Selenium dependency declaration

简介: How to fix My note local Maven build error due to Selenium dependency declaration

One colleague has encountered this issue:

after parent version id and one dependency for Selenium’s version id are changed:image.pngthe local Maven build fails due to the following Java compilation error ( the unit test of My note application is written based on Selenium framework, not OPA )


image.pngSo how to find the appropriate version id of Selenium framework when parent id is changed to 1.10.4?

First trigger a local build with default state of pom.xml, the local can succeed.

If you enable the debug option of Maven build,image.pngyou can find in debug output that the version should be 1.5.0image.pngSo after you specify selenium as 1.5.0 with parent as 1.10.4, the build can pass:image.pngn fact you can also find this 1.5.0 here:image.png


相关文章
|
Java Devops jenkins
【devops】三、Build阶段工具——配置maven
【devops】三、Build阶段工具——配置maven
115 0
|
3天前
|
Java Maven Android开发
【Azure Developer】VS Code打包Java maven Project 遇见 BUILD FAILURE
Unknown lifecycle phase "lean". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>
|
4月前
|
Web App开发 测试技术 Python
【Python】已解决:selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrom
【Python】已解决:selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrom
461 6
|
5月前
|
数据可视化 Java Apache
Maven Dependency Tree:深入理解你的项目依赖
Maven Dependency Tree:深入理解你的项目依赖
792 0
|
6月前
|
Java Maven
maven:the pom for XXX is missing, no dependency information available
maven:the pom for XXX is missing, no dependency information available
411 0
|
Java Apache Maven
Maven 的Could not calculate build plan错误解决方法(不一定适用,看原因)
Maven 的Could not calculate build plan错误解决方法(不一定适用,看原因)
|
12月前
|
Java Maven
Maven错误:was cached in the local repository, resolution will not be reattempted until the update
Maven错误:was cached in the local repository, resolution will not be reattempted until the update
366 1
|
6月前
|
Web App开发 人工智能 测试技术
软件测试/人工智能|解决Selenium中的异常问题:“error sending request for url”
软件测试/人工智能|解决Selenium中的异常问题:“error sending request for url”
320 0
|
12月前
|
缓存 Java Maven
Idea Maven错误:was cached in the local repository, resolution will not be reattempted until the update
Idea Maven错误:was cached in the local repository, resolution will not be reattempted until the update
1821 0
|
Dubbo JavaScript Java
Maven项目中的依赖出现版本冲突,最终发现是对Dependency Scope理解有误
本文记录一下遇到maven依赖版本冲突后的排查过程说明以及问题原因说明
121 0

推荐镜像

更多