Maven workspace resolution missing jars for local Tomcat testing

北慕城南 提交于 2019-12-06 02:30:44

You can get this setup to work (we have been working with the same toolchain and setup here) if you can live with some manual refreshes, after you have been using m2eclipse goals to build.

The problem is, that not all external changes via m2eclipse builds to workspace projects are synched correctly to your deployed web application in tomcat.

So if you are experiencing NoClassDefFoundError exceptions after building via m2eclipse the following should help (not all are necessary everytime):

  • Do a Project/Clean on your maven projects
  • Do a Refresh (F5) on your maven projects
  • Clean the deployed web application (Server Context menu)

Yes, it is cumbersome but one can live with it.

  1. Remove the dependency project from the workspace.
  2. Delete .settings directory and .project files.
  3. Import the project again.
  4. Update maven dependencies in all projects.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!