When dragging a Maven project to the server tomcat the following message appears
"Publishing to tomcat v9.0 server at localhost has encountered a problem"
After much searching on the internet, I discovered that maven's files were corrupted, I closed the eclipse and deleted the .m2 folder that usually "C: \ Users \ user", then I restarted eclipse and then I was able to publish the project to tomcat.