Child module D:\program\eclipse\eclipse\workspace_taotao\taotao-parent\taotao-manager-service of

时间:2021-08-15 12:18:42

1、淘淘商城的项目,报了这个错误,也是一脸懵逼。

 1 [INFO] Scanning for projects...
 2 [ERROR] [ERROR] Some problems were encountered while processing the POMs:
 3 [ERROR] Child module D:\program\eclipse\eclipse\workspace_taotao\taotao-parent\taotao-manager-service of D:\program\eclipse\eclipse\workspace_taotao\taotao-parent\pom.xml does not exist @ 
 4  @ 
 5 [ERROR] The build could not read 1 project -> [Help 1]
 6 [ERROR]   
 7 [ERROR]   The project com.taotao:taotao-parent:0.0.1-SNAPSHOT (D:\program\eclipse\eclipse\workspace_taotao\taotao-parent\pom.xml) has 1 error
 8 [ERROR]     Child module D:\program\eclipse\eclipse\workspace_taotao\taotao-parent\taotao-manager-service of D:\program\eclipse\eclipse\workspace_taotao\taotao-parent\pom.xml does not exist
 9 [ERROR] 
10 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
11 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
12 [ERROR] 
13 [ERROR] For more information about the errors and possible solutions, please read the following articles:
14 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

解决方法(把引入的taotao-manager-service模块配置删除了即可):

是由于,也不知道啥时候在taotao-parent里面引入了taotao-manager-service,就报的莫名其妙的错误。

Child module D:\program\eclipse\eclipse\workspace_taotao\taotao-parent\taotao-manager-service of

2、还有一个最奇葩的问题,就是我新建的taotao-manager-service的war包项目,竟然是这个鸟样子,最后我使用了taotao项目里面的仓库repository,解决了项目结构不一致问题。

Child module D:\program\eclipse\eclipse\workspace_taotao\taotao-parent\taotao-manager-service of

可以修改如下,实现和视频中的maven结构一致(taotao-manager-service)。

使用这个项目结构显示。最后项目结构还是不一样,就将仓库放到你的本地就行了。

Child module D:\program\eclipse\eclipse\workspace_taotao\taotao-parent\taotao-manager-service of

解决完以后是这样的项目结构:

Child module D:\program\eclipse\eclipse\workspace_taotao\taotao-parent\taotao-manager-service of