In the Jenkins pipeline the "snapshots" task should not use the locked dependency versions, since it overrides them with snapshot versions.