To help any other developer with this problem.
I recently addressed this issue. Maven projects are structured differently than Dynamic Web Projects. Therefore, when you manually add a dynamic web module using Fac Facets, eclipse may not register it properly as a Maven project.
To solve this problem, you need to install the m2e plugin and M2E Eclipse WTP (this tells Eclipse how to run your maven projects).
Go to Help β Eclipse Marketplace to find plugins.
After installation, you will need to restart Eclipse and you will be able to use "run on server" for your Maven projects.
Note. You may need to delete / delete the previous project, and then import / create it again after restarting.
dreboy
source share