假設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