1.报错描述:Cannot access central (https://repo.maven.apache.org/maven2) in offline mode
2.解决方案:Maven在离线模式下载不了jar包,点击以下按钮,打开在线模式即可,然后点击刷新按钮
补充同类型报错:
报错描述:
Could not transfer artifact org.apache.kafka:kafka-metadata:jar:3.0.2 from/to central (https://repo.maven.apache.org/maven2): Connection reset
解决方案:
pom.xml文件中导入依赖时不会自动下载依赖包,打开IDEA勾选以下选项