天天看点

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:

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

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 )

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

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,

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

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

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

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

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

n fact you can also find this 1.5.0 here:

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