Go to viewing servers in Eclipse:
Double click on your server. In my case, this is Tomcat.
A Tomcat web module should appear. Click on the Modules tab at the bottom (see Figure 1).
Choose your project. Click the "Delete" button.
Photo 1: 
You should now see a star next to the Tomcat tab. This means that you need to save your changes. So do Control + S.
Photo 2: 
Right-click your project in Project Explorer. Go to Maven -> Update Project ...
Photo 3: 
Now this is an important part, make sure you have the "Force snapshot / release update" checkbox selected. Verification of this part is crucial. Then click Ok.
Photo 4: 
Now look at your server. It should look like this with a βRestartβ warning indicating that it is not in sync.
Photo 5: 
Right-click and select Restart.
Fig 6:

Let the server reboot. Now, if you return to viewing the server, you will see that it is synchronized. This is what you want. Like this:
Photo 7: 
Now you can right-click on your project and select "Run as" β "Run on server" and you will see your changes.
Photo 8: 
If something still did not update, go back to your server view and make sure that it does not indicate a restart, as in Figure 5 above. If this happens, please restart the server again, as in fig. 6. Then click "Refresh" in the browser.
source share