idea添加依赖后,maven里没有依赖项怎么解决

idea添加依赖后,maven里没有依赖项怎么解决,依赖也导不入类,重新构建项目和刷新maven都没有用,其他模块没有问题

img

img

  • 你可以看下这个问题的回答https://ask.csdn.net/questions/7759206
  • 你也可以参考下这篇文章:idea 清理maven引用包及idea 定制护眼主题
  • 除此之外, 这篇博客: 解决idea集成maven在使用骨架构建项目报错问题中的 解决idea集成maven在使用骨架构建项目报错问题 部分也许能够解决你的问题, 你可以仔细阅读以下内容或跳转源博客中阅读:
  • 错误信息如下:
    [WARNING] Could not transfer metadata org.apache.maven.archetypes:maven-archetype-quickstart/maven-metadata.xml from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 3.367 s
    [INFO] Finished at: 2020-04-21T12:58:36+08:00
    [INFO] Final Memory: 15M/115M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE) -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    [ERROR] Maven execution terminated abnormally (exit code 1)

  • 您还可以看一下 汤小洋老师的IDEA开发工具+Maven使用详解视频课程(适合初学者的教程)课程中的 安装IDEA小节, 巩固相关知识点