문제

내가 clojure-couchdb 또는 swank-clojure를 활성화한다면 lein deps org.apache.maven : Super-Pom : Jar : 2.0이 누락되어 실패합니다.

:dependencies [[org.clojure/clojure "1.1.0-master-SNAPSHOT"]
               [org.clojure/clojure-contrib "1.0-SNAPSHOT"]
               [clojure-http-client "1.0.0-SNAPSHOT"]
               [org.apache.activemq/activemq-core "5.3.0"]
;              [org.clojars.the-kenny/clojure-couchdb "0.1.3"]
;              [org.clojure/swank-clojure "1.1.0"]
              ])

이 오류 :

  Path to dependency: 
1) org.apache.maven:super-pom:jar:2.0
2) org.clojure:swank-clojure:jar:1.1.0

----------
1 required artifact is missing.

for artifact: 
 org.apache.maven:super-pom:jar:2.0

from the specified remote repositories:  
  clojars (http://clojars.org/repo/),
  clojure-snapshots (http://build.clojure.org/snapshots),
  central (http://repo1.maven.org/maven2)

Super-Pom이란 무엇입니까? 이 패키지에 필요한 이유는 무엇이며 어디에서 얻을 수 있습니까?

도움이 되었습니까?

해결책

I think this just means that Maven wasn't able to satisfy the dependencies you specified. I've checked there's no org.clojure/swank-clojure artifact in any of the three repositories your message mentions. For clojure-couchdb, the version you're using -- as far as I can tell from looking at its project.clj file on GitHub -- depends on org.clojure/clojure-http-client "1.0.0-SNAPSHOT", which doesn't exist in the repos either.

One way around this problem is to install the jars you want into your local repo. (I can't seem to remember the exact command... will look it up in a minute. See e.g. this page for instructions.) Then Maven will just pick them up from there.

(BTW, if you want to use Clojure + contrib 1.1.0, you can just use "1.1.0" as the version strings now. That's for both org.clojure/clojure and org.clojure/clojure-contrib.)

Oh, and about the super POM -- from this page in Maven's docs:

The Super POM is Maven's default POM. All POMs extend the Super POM unless explicitly set, meaning the configuration specified in the Super POM is inherited by the POMs you created for your projects.

As for how it got into your error message, I've honestly no idea. You could add the "maven" tag to this question or just ask a separate question with that tag to get some Maven gurus onto it.

다른 팁

프로젝트가 의존성을 깨뜨린 것이 여전히 일반적이라고 생각합니다. 불행히도, 그것은 정말로 경험이 많기 때문에 불행한 일입니다.

내 해결책은 계속 진행하는 것입니다 http://clojars.org 그리고 필요한 도서관을 검색하십시오. 일반적으로 몇 가지 버전이 있습니다. 나는 약간의 연구를한다 http://github.com 어느 것이 가장 최신인지 확인합니다. 그런 다음 나는 그것을 종속성으로 시도합니다. 그것이 효과가 있다면, 훌륭합니다! 그렇지 않으면, 나는 다른 것을 시도합니다.

긴 과정이지만 더 좋아지고 있다고 생각합니다. 당신은 전에 프로세스를 본 것입니다!

나는 Maven Super-Pom 의존성에 대해 동일한 오류를 받고 있습니다.

$ sudo lein deps

오류없이 실행됩니다. 이상적인 솔루션은 아니지만 저에게 효과적입니다.

나는 실수로 약 1 년 전에 org.clojure 그룹에 swank-clojure를 업로드했습니다. 그 그룹과 관련이 없기 때문에 곧 삭제했기 때문에 찾을 수 없습니다. 잘못된 버전으로 지침을 어디에서 찾았는지 물어볼 수 있도록 수정할 수 있습니까?

나는 Lein-Ring과 비슷한 문제가 있었는데 org.apache.maven:super-pom. 문제는 그게 밝혀졌습니다 M2_HOME 일에 사용하는 Maven 버전으로 설정되었습니다. 세트하지 않습니다 M2_HOME 문제를 수정했습니다. Leiningen은 이상한 Maven 구현으로 훌륭하지 않은 것 같습니다.

와 함께 Ubuntu 10.10 x86_64, Lein Deps와 함께, 나는 성가 시게됩니다 ... 5 필요한 유물이 없습니다.

아티팩트 용 :

org.apache.maven:super-pom:jar:2.0

...하지만 명령

sudo LEIN_ROOT=1 ~/bin/lein deps;
sudo chown -R $USER:$USER lib 

일을하십시오.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top