问题原因:
- 父模块的pom文件中有错误,比如在modules标签中指定子模块时有重复或者错误指定。
- 系统中配置了多个maven,这时需要将多余的删除
- 也可以尝试重新构建报错的模块。
- 子模块的pom文件存在错误
- 如果报的错为: [ERROR] Some problems were encountered while processing the POMs:
The build could not read 1 project。需要在父模块中的pom文件中的packing标签中的打包方法设置为pom,idea工具会在你创建模块是自动添加,很可能的就是自己将其误删了。