• 使用eclipse maven遇到的错误(转)


    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources) on project example:
    Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources failed:
    Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved:
    Failed to collect dependencies for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 ():
    Failed to read artifact descriptor for org.apache.maven:maven-plugin-descriptor:jar:2.0.6:
    Could not transfer artifact org.apache.maven:maven-plugin-descriptor:pom:2.0.6 from/to central (repo.maven.apache.org/maven2):
    No response received after 60000 -> [Help 1]

    解决办法:

    在.m2 目录下新建settings.xml 文件,编辑内容如下:

    <settings>
        <mirrors>
            <mirror>
                <id>uk.maven.org</id>
                <mirrorOf>central</mirrorOf>
                <name>UK Central</name>
                <url>http://uk.maven.org/maven2</url>
            </mirror>
        </mirrors>
    </settings>

    然后删除repository目录,重新执行mvn install

  • 相关阅读:
    oracle 存储过程 技巧
    任何用户密码都能以sysdba角色登入
    DBA操作常用命令
    事务 脏数据
    Axis2 WebService(配置、发布、调用)
    C#接口
    纯CSS3实现的一些酷炫效果
    C#运算符大全_各种运算符号的概述及作用
    mvc图片上传到服务器
    C# .NET 基本概念
  • 原文地址:https://www.cnblogs.com/sandea/p/3424500.html
Copyright © 2020-2023  润新知