这里写目录标题
问题1: [WARNING] Unrecognised tag: ‘mirror’ (position: START_TAG seen …\n -->\n\n\t\t… @161:11) @ C:\tool\apache-maven-3.6.1\bin…\conf\settings.xml, line 161, column 11
是因为Mirrors多了
问题2:idea新建maven项目没有resource文件夹
1、点击File–>project structure…
2、2.Modules–>Sources–>main右键–>New Folder, 输入resources
问题3:依赖fastjson包出现的错误,Unable to import maven project: See logs for details
看到右下角有个错误,点进去显示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