简体   繁体   English

Clojure/leiningen 找不到依赖

[英]Clojure/leiningen cannot find dependencies

I am new to Clojure and Leiningen.我是 Clojure 和 Leiningen 的新手。 Just started working on an existing project.刚刚开始在现有项目上工作。 I pull the repo and did the command Lein run.我拉了 repo 并执行了 Lein 运行的命令。 It complained:它抱怨说:

"Could not find artifact arctype:service.jose:jar:0.1.0-SNAPSHOT in clojars ( https://repo.clojars.org/ ) Could not transfer artifact arctype:service.jose:jar:0.1.0-SNAPSHOT from/to enonic ( https://repo.enonic.com/public/ ): Failed to transfer file https://repo.enonic.com/public/arctype/service.jose/0.1.0-SNAPSHOT/service.jose-0.1.0-SNAPSHOT.jar with status code 409" “在 clojars ( https://repo.clojars.org/ ) 中找不到工件 arctype:service.jose:jar:0.1.0-SNAPSHOT 无法传输工件 arctype:service.jose:jar:0.1.0-SNAPSHOT /to enonic ( https://repo.enonic.com/public/ ):无法传输文件https://repo.enonic.com/public/arctype/service.jose/0.1.0-SNAPSHOT/service.jose- 0.1.0-SNAPSHOT.jar状态码为 409"

What I proceeded to do, under the assumption that the dependencies are bad, is that I went on repo.clojars.org.在依赖关系不好的假设下,我继续做的是我去了 repo.clojars.org。 Manually looked into the dependencies and changed "[arctype/service.jose "0.1.0-SNAPSHOT" :exclusions [arctype/service]]" in project.clj to "[arctype/service "0.1.0-SNAPSHOT":exclusions [arctype/service]]", because that is what it has on the site.手动查看依赖项并将 project.clj 中的 "[arctype/service.jose "0.1.0-SNAPSHOT" :exclusions [arctype/service]]" 更改为 "[arctype/service "0.1.0-SNAPSHOT":exclusions [ arctype/service]]”,因为这是它在网站上的内容。 But turns out that "Jose" is not inside of arctype/service, and changing the dependencies like I did removed it, so I have to change it back.但事实证明“Jose”不在 arctype/service 中,并且像我删除它一样更改依赖项,所以我必须将其更改回来。

What im really confused about, is that, according to the error message, I went on repo.clojars.org to look for the dependencies I want, "arctype.service.jose" is no where to be found.我真正困惑的是,根据错误消息,我去 repo.clojars.org 寻找我想要的依赖项,找不到“arctype.service.jose”。 Not even something close.甚至没有接近的东西。

I saw the second half error message that mentions repo.enonic.com/public , so I try to look for the dependecy there as well.我看到了提到 repo.enonic.com/public 的后半部分错误消息,所以我也尝试在那里寻找相关性。 Same result, nothing.结果一样,没什么。 In my project.clj file, the repository is repo.enonic.com/public.在我的 project.clj 文件中,存储库是 repo.enonic.com/public。 I am really confused, can somebody please enlighten me!我真的很困惑,有人可以请教我吗! Thanks in advance!提前致谢!

Im not sure if I provided enough, please let me know!我不确定我提供的是否足够,请告诉我!

Most open source projects written in Java publish artifacts on Maven Central, and most Clojure projects publish artifacts on Maven Central or clojars.org.大多数用 Java 编写的开源项目在 Maven Central 上发布工件,而大多数 Clojure 项目在 Maven Central 或 clojars.org 上发布工件。 The fact that your error message mentions https://repo.enonic.com/public/ might be because the artifact mentioned in your project.clj file was published on that server, not on clojars.org.您的错误消息提到https://repo.enonic.com/public/的事实可能是因为您的 project.clj 文件中提到的工件是在该服务器上发布的,而不是在 clojars.org 上。

If I go to clojars.org (not repo.clojars.org) there is a nice web interface with a search box, and if I enter "arctype" (without the double quotes) and do a search on that, it finds arctype/service, but not arctype/service.jose, probably because arctype/service.jose was not published on the clojars.org site.如果我去 clojars.org(不是 repo.clojars.org)有一个带有搜索框的不错的网络界面,如果我输入“arctype”(不带双引号)并搜索它,它会找到 arctype/服务,但不是 arctype/service.jose,可能是因为 arctype/service.jose 未在 clojars.org 站点上发布。 Or, if it was, someone decided to remove it.或者,如果是,有人决定将其删除。 Removing published things is fairly uncommon, so my guess is that if arctype/service.jose ever existed, it might have only been published on the repo.enonic.com site.删除已发布的内容是相当罕见的,所以我的猜测是,如果 arctype/service.jose 曾经存在过,它可能只发布在 repo.enonic.com 站点上。

Is your project open source?你的项目是开源的吗? Published on Github.com or a similar site where others can get a copy and try it out?发布在 Github.com 或其他类似网站上,其他人可以在那里获取副本并试用? If yes, including that in your question would help others see if they get the same error you do.如果是,将其包含在您的问题中将有助于其他人了解他们是否会遇到与您相同的错误。

If the project you are working with is not open source, then hopefully someone more familiar with the particular errors you are seeing than I am will answer.如果您正在使用的项目不是开源项目,那么希望有人比我更熟悉您所看到的特定错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM