环境:
myeclipse 2016/eclipse,jdk 1.8,tomcat 8
- 检出项目
- 将项目在myeclipse中删除,Delete project contents ...不打对勾
- 将检出的项目目录中除src和pom.xml以外文件删除
- import项目 maven->Existing Maven Projects 选择刚才的项目 点击finish
- 项目导入完毕,右键项目以此选择debug as ->maven clean
- 右键项目以此选择debug as ->maven install 等待下载完jar包(时间比较长,加载包时可能出现下载出来的包没有jar而报错,手动将jar包添加到报错的目录下,继续执行此步骤)
- 右键项目以此选择maven->update project发布项目
- 右键项目以此选择debug as ->MyEclipse server application在弹出框中选择要使用的启动器(tomcat),然后点击finish