假设workspace path为D:\java\guns
新建一个maven工程时,工程的名字是由图2的Artifact Id决定的,如果你Artifact Id为A,Location为D:\java\guns\B,就会报错
D:\java\guns\B overlaps the location of another project: 'B'
原因是:
因为Eclipse要求workspace path下的路径名必须与该workspace工程同名,所以就会看到下图中的报错。
Yes, there is an strongly-enforced requirement that a project created in the workspace must have the same name as its directory.
--https://www.eclipse.org/forums/index.php/t/1076613/
此时如果你想在workspace path下的子路径api下建一个多模块的maven工程,期望的结构如下:
本地路径结构如下:zong是父模块,a是子模块
那操作如下:
来源:oschina
链接:https://my.oschina.net/u/999023/blog/2961759