idea在相同项目下,复制模块儿.
进入项目路径.
如下图
一. 普通java项目
文件复制项目根目录-->
选中目标模块儿文件-->复制并粘贴-->修改模块儿中iml文件名,如java11-->修改模块儿名,与iml文件名保持一致java11-->模块儿导入项目
文件导入项目窗口-->File-->new-->Module From Existing sources-->
选中复制后的 模块儿,
点击ok-->选择Create module from existing sources-->next-->next-->finsh.

填写新模块儿路径,然后点击ok

java格式选择第一个,然后next

next

finsh

二. maven项目
文件复制项目根目录-->选中目标模块儿-->复制并粘贴-->找到pom.xml文件修改
<artifactId>标签内容,如maven11-->修改iml文件,以及模块儿名为maven11,-->导入项目
文件导入项目窗口-->File-->new-->Module From Existing sources-->
选中复制后的 模块儿,
点击ok-->选择Import module from external model-->
选中maven-->next-->next-->next-->finsh. 
填写新模块儿路径,然后点击ok

选择第二个 之后next.
next
next
finsh
就这样啦 ~~~~~