分享

关于Maven找不到jar包的解决方案

 IT民工收藏 2014-08-06
[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.1:redeploy (default-cli) on project coreservlets: Execution default-cli of goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.1:redeploy failed: Plugin org.apache.tomcat.maven:tomcat7-maven-plugin:2.1 or one of its dependencies could not be resolved: Failure to find org.apache.tomcat.embed:tomcat-embed-core:jar:7.0.37 in http://localhost:8081/nexus/content/groups/public/was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced-> [Help 1]

出现此错误时:was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced

解决办法:去自己的.m2 文件夹下把 xxx.lastUpdated文件全部删掉,重新运行maven,ok!或者在用maven时加 -U参数,就可以忽略xxx.lastUpdated..

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多