Trying to create project in a sub folder under the workspace path fails Invalid project description

假设workspace path为D:\java\gunsphp

新建一个maven工程时,工程的名字是由图2的Artifact Id决定的,若是你Artifact Id为A,Location为D:\java\guns\B,就会报错java

D:\java\guns\B overlaps the location of another project: 'B'api

缘由是:eclipse

由于Eclipse要求workspace path下的路径名必须与该workspace工程同名,因此就会看到下图中的报错。maven

Yes, there is an strongly-enforced requirement that a project created in the workspace must have the same name as its directory.ui

--https://www.eclipse.org/forums/index.php/t/1076613/spa

 

此时若是你想在workspace path下的子路径api下建一个多模块的maven工程,指望的结构以下:3d

本地路径结构以下:zong是父模块,a是子模块blog

那操做以下:ip