在中央存储库中找不到资源"opensymphony:quartz-all:pom:1.6.3" [英] Unable to find resource 'opensymphony:quartz-all:pom:1.6.3' in repository central

查看:527
本文介绍了在中央存储库中找不到资源"opensymphony:quartz-all:pom:1.6.3"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了该项目,该项目过去曾用于&运行成功(几年前...).现在,当从版本控制中签出时,它会抱怨:

I inherited this project which used to build & run successfully (years ago...). Now when checked out from version control, as is, it complains:

在以下位置找不到资源"opensymphony:quartz-all:pom:1.6.3" 中央存储库( http://repo1.maven.org/maven2 )

Unable to find resource 'opensymphony:quartz-all:pom:1.6.3' in repository central (http://repo1.maven.org/maven2)

但是,按照该存储库链接( http://repo1.maven.org/maven2 )的链接到可清楚显示该资源可用的可浏览站点: http://search.maven.org/#browse|1030701351

But following that repository link (http://repo1.maven.org/maven2) leads to a browsable site that shows clearly that this resource is available: http://search.maven.org/#browse|1030701351 !

我什至可以手动下载它,也可以在本地存储库(C:\maven\repo\opensymphony\quartz-all\1.6.3\quartz-all-1.6.3)中找到它.

I have even been able to manually download it, and I can also find it in my local repo (C:\maven\repo\opensymphony\quartz-all\1.6.3\quartz-all-1.6.3).

所以,我的问题:

  1. 如果 在那,为什么Maven会抱怨呢?
  2. 如果Maven找不到它,它如何到达我的本地回购?
  1. Why is Maven complaining at all, if it is there?
  2. How did it get to my local repo, if Maven couldn't find it?

推荐答案

您的本地存储库不在C:\ maven中,而是位于您的用户目录〜/.m2/存储库中

Your local repository is NOT in C:\maven ... it is in your users directory ~/.m2/repository

要调试实际发生的情况,我建议停用〜/.m2/settings.xml(例如,通过重命名)并进行干净的构建,而无需任何旧工件,并从新的本地存储库中删除(只需删除) 〜/.m2/存储库)

To debug what is really going on I would suggest to deactivate the ~/.m2/settings.xml (e.g. by renaming it) and do a clean build without any of the old artifacts and from a fresh local repository (just delete ~/.m2/repository)

这将告诉您真正缺少的是什么.

That would tell you what is really missing.

如果缺少任何内容,则表示它不在Centra存储库(http://search.maven.org)中.接下来,我将在您的网络中安装存储库管理器.我建议使用Sonatype Nexus(开源,免费书籍作为文档),然后在其中添加任何其他存储库或缺少的工件.

If anything is missing that means it is not in the Centra Repository (http://search.maven.org). As a next step I would then install a repository manager in your network. I would recommend using Sonatype Nexus (open source, free book as documentation) and then add any other repositories or missing artifacts in there.

这篇关于在中央存储库中找不到资源"opensymphony:quartz-all:pom:1.6.3"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆