【问题标题】:Create a maven webapp project using the eclipse kelper, I got an eclipse error使用 eclipse kelper 创建一个 maven webapp 项目,出现 eclipse 错误
【发布时间】:2014-02-19 06:17:48
【问题描述】:

我有一个问题,使用Eclipse-jee-kelper创建Maven项目,我的步骤是new/Maven Project/maven-archetype-webapp/naming/finish,我得到一个Failed to create project "test"错误,如如下:无法计算构建计划:插件 org.apache.maven.plugins:maven-war-plugin:2.1.1 或其依赖项之一无法解析:无法读取 org.apache.maven.plugins 的工件描述符: maven-war-plugin:jar:2.1.1

我的环境是:Windows 7 64bit, JDK 1.7, eclipse Jee kelper, Maven 3.1.1 这可能是一个愚蠢的问题,但却让我纠结了一个上午。 好心提醒! 提前致谢!


我必须关闭这个问题,因为我找到了答案 Spring's Forum

【问题讨论】:

  • 酷,谢谢你的解决方案链接!

标签: eclipse maven web-applications archetypes


【解决方案1】:

我的解决方案是: 1.Windows-->Preferences-->maven-->用户设置-->add 你的 Maven 目录/conf/settings.XML --> 应用。 2.接下来,安装-->添加-->你的maven目录-->应用 两步后,maven测试,或者maven更新项目成功。

【讨论】:

    【解决方案2】:

    同样的错误出现在我身上。我通过更新 maven 并检查 Eclipse 中的“强制更新快照/发布”选项解决了这个问题。这将清除所有错误。 所以右键单击项目-> Maven-> 更新项目,然后检查上面的选项-> 确定。 希望对您有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-10-28
      • 1970-01-01
      • 2017-04-21
      • 1970-01-01
      • 2018-10-20
      • 2015-02-09
      • 2016-05-21
      相关资源
      最近更新 更多