I fixed the problem , I added maven-surefire plugin , took off the junit dependency ( I put it bcz I faced error while deploying to nexus and after changing it the deploying worked) , and to fix the 401 unauthorized error in mvn deploy:deploy , I just changed mvn version from 3.5. to 3.6.3
CLICK HERE to find out more related problems solutions.