是因为Mirrors多了
1、点击File–>project structure…
2、2.Modules–>Sources–>main右键–>New Folder, 输入resources
看到右下角有个错误,点进去显示Unable to import maven project: See logs for details
解决办法:
1)Help–Show log in Explorer将日志拿下来看
看到的错误:
ERROR - #org.jetbrains.idea.maven - com.google.inject.CreationException: Unable to create injector, see the following errors:
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project test01: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter
2)上网查找原因:是因为idea 2018 和maven3.8.6版本兼容问题
3)将IDEA工具使用的maven版本变更为工具自带版本也可以解决,File-Other settings–Defult settings