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

原创
2019/08/23 19:09
阅读数 32

One colleague has encountered this issue:
after parent version id and one dependency for Selenium’s version id are changed:

the 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 )

So 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,

you can find in debug output that the version should be 1.5.0

So after you specify selenium as 1.5.0 with parent as 1.10.4, the build can pass:

in fact you can also find this 1.5.0 here:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

本文同步分享在 博客“汪子熙”(CSDN)。
如有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享。

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部