【问题标题】:Eclipse build using maven使用 maven 构建 Eclipse
【发布时间】:2012-01-16 18:12:35
【问题描述】:

我不知道是否应该在这个论坛上提问。我正在尝试从以下 URL http://www.mkyong.com/spring-mvc/spring-mvc-file-upload-example/comment-page-1/#comment-76368 下载示例。一旦我下载了 zip 并将项目导入到 Eclipse 中,我该如何构建它。我知道 eclipse 会自动构建它,但是当我导入它时会给出错误,例如 {Can not find the tag library descriptor for "http://www.springframework.org/tags/form"}。我认为这与maven有关。所以我将maven插件安装到eclipse中,但仍然存在这个错误。有什么线索吗?

【问题讨论】:

  • 你是如何将它导入 Eclipse 的?

标签: maven-2


【解决方案1】:

上面提到的zip一个maven项目。在尝试在 Eclipse 中运行它之前,您可以在下载并安装 maven 后尝试从命令行构建它。一旦这成功了,假设你有最新的带有 m2e 插件的 Eclipse,你应该能够将它作为一个 maven 项目导入。

【讨论】:

  • 我导入了这个 maven 项目并尝试构建它,但得到以下错误 1/17/12 5:48:33 PM EST: Build error for /SpringMVC/pom.xml; org.apache.maven.plugin.PluginResolutionException:插件 org.apache.maven.plugins:maven-resources-plugin:2.4.3 或其依赖项之一无法解析:无法读取 org.apache.maven 的工件描述符。插件:maven-resources-plugin:jar:2.4.3
猜你喜欢
  • 2013-12-12
  • 1970-01-01
  • 1970-01-01
  • 2018-01-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-05-24
  • 2015-03-03
相关资源
最近更新 更多