As Ivan pointed out (way back in 2018, while I faced this issue in July 27, 2025, :) ), i changed the scope of 3 dependencies, in the pom file, from scope 'Test' to scope 'Compile'. And, the Jenkins compile error issue --- ([ERROR] C:\Users\***\.jenkins\workspace\JenkinCICD\src\main\java\simplePackage\SimpleActions.java:[6,26] error: package org.openqa.selenium does not exist ) --- was fixed. Not getting that error anymore, and the app ran fine through Jenkins job. Thanks Ivan!