Eclipse复制maven web项目

第一步:复制原由项目并改名

原项目名为:ssm-crud

Eclipse复制maven web项目

改后项目名:ssm

Eclipse复制maven web项目

第二步:修改配置文件

修改 pom.xml文件中的artifactId

Eclipse复制maven web项目

ssm-crud 改为我们改后的项目名 即 ssm
Eclipse复制maven web项目

然后修改web.xml文件

同理将原项目名改为新项目名

Eclipse复制maven web项目

Eclipse复制maven web项目

接下来修改项目目录下的org.eclipse.wst.common.component文件
右键项目选择 properties

Eclipse复制maven web项目

选中resource 复制location
Eclipse复制maven web项目

打开我的计算机,粘贴location地址

Eclipse复制maven web项目

在.settting文件夹中找到org.eclipse.wst.common.component
Eclipse复制maven web项目

打开文件,修改以下三处
Eclipse复制maven web项目

最后一点很重要,网上其他播客少有提及
返回eclipse 右键项目properties
选中左侧栏底部的 web Proect Settings ,然后再右侧Context-root将原项目名修改为新项目名
Eclipse复制maven web项目

Eclipse复制maven web项目

然后点击apply 选择yes 大功告成!