joda-time 1.6.2 jar 未从 Maven 中央存储库下载
我的问题是,我试图引入 joda-time jar,但由于某种原因 Eclipse 找不到它。这是我收到的消息:1/25/11 11:53:22 AM CST: Missing artifact joda-time:joda-time:jar:1.6.2:compile
这是我的依赖项:
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>1.6.2</version>
</dependency>
但是,我可以去 http://repo1.maven.org /maven2/joda-time/joda-time/1.6.2/ 它肯定在那里。
关于为什么我似乎无法检索它有什么想法吗?如果还有任何其他可能相关的信息,请告诉我,我会将其包含在内。
I am an issue where I'm trying to bring in the joda-time jar but Eclipse can't find it, for some reason. This is the message I get: 1/25/11 11:53:22 AM CST: Missing artifact joda-time:joda-time:jar:1.6.2:compile
Here is my dependency:
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>1.6.2</version>
</dependency>
However, I can go to http://repo1.maven.org/maven2/joda-time/joda-time/1.6.2/ and it's definitely there.
Any ideas on why it seems I'm unable to retrieve it? If there's any other information that might seem pertinent, let me know and I'll include it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当 .m2 存储库被破坏时,我有时会遇到其他工件的问题。删除 .m2/joda-time 文件夹并重试。如果这不起作用,请向我们展示您的存储库列表。我认为如果你生成一个有效的 pom,它会显示完整的列表。如果没有,请显示 settings.xml、父 pom 和 poms 中的存储库部分。
另外你用的maven是什么版本?
最后,如果我遇到棘手的maven问题,我通常会尝试使用maven(最好是m2eclipse正在使用的相同版本)在命令行中解决它,并在那里解决它,完成后,在m2中解决它。
I've sometimes run into this with other artifacts when the .m2 repo gets munged. Delete the .m2/joda-time folder and try again. If that doesn't work show us your repository list. I think if you generate an effective pom, it will show the complete list. If it doesn't, show your repositories section from settings.xml, parent pom, and poms.
Also what version of maven are you using?
Finally, if I run into tricky maven issues I generally try to solve it at the command line using maven (preferably same version m2eclipse is using) and resolve it there, when done, resolve it in m2.