zoukankan      html  css  js  c++  java
  • 创建 maven 项目的时候遇到的问题

    Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.

    一直提醒出现如上的问题,网上查了一些,都没解决。有些让在 pom 文件里添加一个依赖在 install 一下,并没用。还有些说 

    打开maven的本地库... epositoryorgapachemavenpluginsmaven-surefire-plugin2.10会发现:里面少只有一个maven-surefire-plugin-2.10.pom.lastUpdated,而没有maven-surefire-plugin-2.10.jar
    解决方法: 
    1.删除maven-surefire-plugin-2.7.1.pom.lastUpdated文件
    2.右键点击project -> Maven - Update Dependencies

    依旧解决不了。

    最终的解决办法是:

    可能是你之前下载的有失败的,所以将之前的全部删掉

    cd %userprofile%.m2
    epository
    for /r %i in (*.lastUpdated) do del %i

    如上所示,删掉后,再右击你的 project,选择 Maven->"Update Project ...",确保在结果对话框中选中“Update Dependencies”,然后单击“确定”即可。

    等待 eclipse 下载吧!

    作者:意无尽 公众号:意无尽 关于作者:本人目前传统专业,现自学 Java,后续会有向大数据方向转型。希望自己能一步一个脚印的走下去,以此博客来见证我技术的成长轨迹!
  • 相关阅读:
    Android音频(7)——项目实战——耳麦插拔
    Android音频(6)——音频系统分析
    Android音频(5)——框架中的概念和涉及的文件
    Android音频(4)——音频驱动实战
    Android音频(3)——ALSA声卡驱动——DAPM
    Android音频(2)——ALSA声卡驱动——ASoC
    Mvc中Session导致action不异步的问题
    RabbitMQ 声明Queue时的参数们的Power
    RabbitMQ 实现RPC
    RabbitMQ Topic exchange
  • 原文地址:https://www.cnblogs.com/reformdai/p/11853532.html
Copyright © 2011-2022 走看看