51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2487|回复: 1
打印 上一主题 下一主题

[转贴] 新建maven项目报错

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2017-7-13 16:33:23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
如果你是通过自己手动下载maven插件包,那么你可能会遇到在新建maven项目的时候,eclipse会报错,具体错误信息如下:
Build errors for T1; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources (default-resources) on project T1: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies could not be resolved: Failure to transfer org.codehaus.plexus:plexus-interpolation:jar:1.13 from http://repo1.maven.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.codehaus.plexus:plexus-interpolation:jar:1.13 from/to central (http://repo1.maven.org/maven2): No response received after 60000
原因:下载的maven插件包缺失文件
解决方案:
第一步:点击eclipse->Window->Preferenes->Meven->Installations,添加maven的安装文件,如下图所

第二步:修改maven项目的pom.xml文件,具体内容可点击该链接进行查看,http://pan.baidu.com/s/1hqzhHFe
把具体内容更改为自己的项目内容就可以了
第三步:选择pom.xml文件右键选择Run as->Maven build,如下
然后选择你需要的内容,点击run按钮,其就能自动下载缺少的文件了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情
    无聊
    前天 09:07
  • 签到天数: 11 天

    连续签到: 2 天

    [LV.3]测试连长

    2#
    发表于 2017-7-13 17:21:29 | 只看该作者
    目前好像没遇到啊?
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-9-21 05:34 , Processed in 0.065155 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表