【问题标题】:Maven error when importing jpetstore of Spring3.0 to Springsource Tool SuiteSpring3.0的jpetstore导入Springsource Tool Suite时出现Maven错误
【发布时间】:2012-05-20 13:55:27
【问题描述】:

我从 SVN 下载了 JPetstore,但有一些我无法解决的 maven 错误

我尝试运行 maven-update 依赖和 maven-update 项目配置,但没有帮助。

错误如下:

The container 'Maven Dependencies' references non existing library 
'C:\Users\YYC\.m2\repository\javax\servlet\jstl\1.2\jstl-1.2.jar

ArtifactDescriptorException: Failed to read artifact descriptor for 
org.springframework:spring-context-support:jar:3.0.0.BUILD-SNAPSHOT: 

Maven:2.2.1

Spring JPetstore https://src.springframework.org/svn/spring-samples/jpetstore/trunk/org.springframework.samples.jpetstore/

我想了解错误并解决它们,以便我可以构建和运行 JPetStore 代码。

【问题讨论】:

  • jstl 库在存储库中吗?
  • 将 Spring 工件更新到 3.0.5.RELEASE 修复了此错误,但会导致其他错误
  • 我在我的存储库中看不到 jstl 库。但我的问题是为什么 maven 不能为我下载 jstl 到存储库?因为我在 pom.xml 文件中看到了依赖描述
  • 对于 Rob,它通过更改为 3.0.5.BUILD-SNAPSHOT 来工作

标签: java spring maven


【解决方案1】:

答案似乎是编辑pom.xml 以引用 Spring 3.0.5.RELEASE 替换文件中的 3.0.0.BUILD-SNAPSHOT。

【讨论】:

  • 我不清楚 jPetStore 应用程序是否由 SpringSource 积极维护,因为我在 GitHub 上找不到它,他们将主要项目转移到了那里。如果我们能为这个应用程序的维护做出贡献,那就太好了。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-06-18
  • 1970-01-01
  • 2012-06-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多