maven for PR failed yet on local machine it builds successful.

the "mvn clea isnstall, “clean package” and "mvn test’ builds successful. but on the PR the tests of maven show errors. how this possible