진부하다경고 2.3.4에서 NPE 던지기 제외
12651 단어 leiningen
묘사
Compilation started at Thu Nov 21 11:32:02
lein check
Possibly confusing dependencies found:
[lein-ancient "0.5.2" :exclusions [org.clojure/clojure]] -> [ancient-clj "0.1.4"] -> [clj-aws-s3 "0.3.6"] -> [com.amazonaws/aws-java-sdk "1.4.2.1"] -> [commons-codec "1.3"]
overrides
[lein-ancient "0.5.2" :exclusions [org.clojure/clojure]] -> [ancient-clj "0.1.4"] -> [clj-aws-s3 "0.3.6"] -> [com.amazonaws/aws-java-sdk "1.4.2.1"] -> [org.apache.httpcomponents/httpclient "4.1"] -> [commons-codec "1.4"]
Consider using these exclusions:
[lein-ancient "0.5.2" :exclusions [org.clojure/clojure commons-codec]]
Possibly confusing dependencies found:
[com.cemerick/pomegranate "0.0.4"] -> [org.sonatype.aether/aether-connector-wagon "1.13"] -> [org.apache.maven.wagon/wagon-provider-api "1.0-beta-6"]
overrides
[com.cemerick/pomegranate "0.0.4"] -> [org.apache.maven.wagon/wagon-http-lightweight "1.0-beta-7"] -> [org.apache.maven.wagon/wagon-provider-api "1.0-beta-7"]
and
[com.cemerick/pomegranate "0.0.4"] -> [org.apache.maven.wagon/wagon-http-lightweight "1.0-beta-7"] -> [org.apache.maven.wagon/wagon-http-shared "1.0-beta-7" :exclusions [commons-httpclient]] -> [org.apache.maven.wagon/wagon-provider-api "1.0-beta-7"]
Consider using these exclusions:
[com.cemerick/pomegranate "0.0.4" :exclusions [org.apache.maven.wagon/wagon-provider-api]]
[com.cemerick/pomegranate "0.0.4" :exclusions [org.apache.maven.wagon/wagon-provider-api]]
[aleph "0.3.0"] -> [org.clojure/tools.logging "0.2.3" :exclusions [org.clojure/clojure-contrib org.clojure/contrib]]
overrides
[gloss "0.2.2"] -> [lamina "0.5.0"] -> [org.clojure/tools.logging "0.2.4" :exclusions [org.clojure/clojure-contrib org.clojure/contrib]]
and
[aleph "0.3.0"] -> [lamina "0.5.0" :exclusions [org.clojure/clojure-contrib org.clojure/contrib]] -> [org.clojure/tools.logging "0.2.4" :exclusions [org.clojure/clojure-contrib org.clojure/contrib]]
and
[aleph "0.3.0"] -> [gloss "0.2.2" :exclusions [org.clojure/clojure-contrib org.clojure/contrib]] -> [lamina "0.5.0"] -> [org.clojure/tools.logging "0.2.4" :exclusions [org.clojure/clojure-contrib org.clojure/contrib]]
Consider using these exclusions:
[gloss "0.2.2" :exclusions [org.clojure/tools.logging]]
[aleph "0.3.0" :exclusions [org.clojure/tools.logging]]
[aleph "0.3.0" :exclusions [org.clojure/tools.logging]]
[clojure-complete "0.2.3" :exclusions [org.clojure/clojure]]
overrides
[clojure-complete "0.2.3"]
Consider using these exclusions:
java.lang.NullPointerException
at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:296)
at leiningen.core.classpath$exclusion_for_range.invoke(classpath.clj:228)
at leiningen.core.classpath$exclusion_for_override.invoke(classpath.clj:238)
at clojure.core$map$fn__4207.invoke(core.clj:2485)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
at clojure.lang.LazySeq.seq(LazySeq.java:60)
at clojure.lang.RT.seq(RT.java:484)
at clojure.core$seq.invoke(core.clj:133)
at leiningen.core.classpath$pedantic_print_overrides.invoke(classpath.clj:266)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.AFn.applyTo(AFn.java:151)
at clojure.core$apply.invoke(core.clj:617)
at clojure.core$memoize$fn__5049.doInvoke(core.clj:5735)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at leiningen.core.classpath$pedantic_do.invoke(classpath.clj:279)
at leiningen.core.classpath$get_dependencies.doInvoke(classpath.clj:300)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:621)
at leiningen.core.classpath$resolve_dependencies.doInvoke(classpath.clj:343)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at leiningen.core.eval$prep.invoke(eval.clj:56)
at leiningen.core.eval$eval_in_project.invoke(eval.clj:323)
at leiningen.core.eval$eval_in_project.invoke(eval.clj:333)
at leiningen.check$check.invoke(check.clj:29)
at clojure.lang.Var.invoke(Var.java:415)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.core$apply.invoke(core.clj:619)
at leiningen.core.main$resolve_task$fn__3029.doInvoke(main.clj:189)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.lang.AFunction$1.doInvoke(AFunction.java:29)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:619)
at leiningen.core.main$apply_task.invoke(main.clj:230)
at leiningen.core.main$resolve_and_apply.invoke(main.clj:234)
at leiningen.core.main$_main$fn__3092.invoke(main.clj:303)
at leiningen.core.main$_main.doInvoke(main.clj:290)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.lang.Var.invoke(Var.java:415)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.core$apply.invoke(core.clj:617)
at clojure.main$main_opt.invoke(main.clj:335)
at clojure.main$main.doInvoke(main.clj:440)
at clojure.lang.RestFn.invoke(RestFn.java:436)
at clojure.lang.Var.invoke(Var.java:423)
at clojure.lang.AFn.applyToHelper(AFn.java:167)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.main.main(main.java:37)
Compilation exited abnormally with code 1 at Thu Nov 21 11:32:04
미안하지만, 나는 학구의 내부 구조를 몰라서 더 이상 이해할 수가 없다.토론 #1
당신은 이 조작을 촉발하는 데 필요한project.clj
를 포함할 수 있습니까?토론 #2
폭발을 일으키는 데 필요한 절대 최소치:개인 정보:
{ :user {
:dependencies [
[utilza "0.1.39"]
]
}}
프로젝트에서 다음을 수행합니다.(defproject foobar "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:pedantic? warn
:dependencies [[org.clojure/clojure "1.5.1"]
[utilza "0.1.39"]])
제공:Compilation started at Thu Nov 21 15:21:28
lein check
Possibly confusing dependencies found:
[utilza "0.1.39"]
overrides
[utilza "0.1.39"]
Consider using these exclusions:
java.lang.NullPointerException
at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:296)
at leiningen.core.classpath$exclusion_for_range.invoke(classpath.clj:228)
at leiningen.core.classpath$exclusion_for_override.invoke(classpath.clj:238)
at clojure.core$map$fn__4207.invoke(core.clj:2485)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
at clojure.lang.LazySeq.seq(LazySeq.java:60)
at clojure.lang.RT.seq(RT.java:484)
at clojure.core$seq.invoke(core.clj:133)
at leiningen.core.classpath$pedantic_print_overrides.invoke(classpath.clj:266)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.AFn.applyTo(AFn.java:151)
at clojure.core$apply.invoke(core.clj:617)
at clojure.core$memoize$fn__5049.doInvoke(core.clj:5735)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at leiningen.core.classpath$pedantic_do.invoke(classpath.clj:279)
at leiningen.core.classpath$get_dependencies.doInvoke(classpath.clj:300)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:621)
at leiningen.core.classpath$resolve_dependencies.doInvoke(classpath.clj:343)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at leiningen.core.eval$prep.invoke(eval.clj:56)
at leiningen.core.eval$eval_in_project.invoke(eval.clj:323)
at leiningen.core.eval$eval_in_project.invoke(eval.clj:333)
at leiningen.check$check.invoke(check.clj:29)
at clojure.lang.Var.invoke(Var.java:415)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.core$apply.invoke(core.clj:619)
at leiningen.core.main$resolve_task$fn__3029.doInvoke(main.clj:189)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.lang.AFunction$1.doInvoke(AFunction.java:29)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:619)
at leiningen.core.main$apply_task.invoke(main.clj:230)
at leiningen.core.main$resolve_and_apply.invoke(main.clj:234)
at leiningen.core.main$_main$fn__3092.invoke(main.clj:303)
at leiningen.core.main$_main.doInvoke(main.clj:290)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.lang.Var.invoke(Var.java:415)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.core$apply.invoke(core.clj:617)
at clojure.main$main_opt.invoke(main.clj:335)
at clojure.main$main.doInvoke(main.clj:440)
at clojure.lang.RestFn.invoke(RestFn.java:436)
at clojure.lang.Var.invoke(Var.java:423)
at clojure.lang.AFn.applyToHelper(AFn.java:167)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.main.main(main.java:37)
Compilation exited abnormally with code 1 at Thu Nov 21 15:21:29
이 문물이 utilza든 clojure complete든 뭐든문제를 야기하는 것은 중복 의존 관계다.이 밖에도 의존을 전달하는 것도 이런 상황을 초래할 것 같다!그래서 폭발을 피할 수가 없었어요.2, 3 으로 돌아가야 돼요.나는 상술한 내용이 회귀 테스트 사례에 응용될 수 있기를 바란다.
토론 #셋
나도 같은 문제를 보았다.내 프로젝트에서https://github.com/deg/degel-clojure-utils
:pedantic? :abort
를 project.clj
에 추가하고 lein
를 실행하면 다음 오류가 발생합니다.Possibly confusing dependencies found:
[lein-marginalia "0.7.1"]
overrides
[lein-marginalia "0.7.1"]
Consider using these exclusions:
java.lang.NullPointerException
at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:296)
at leiningen.core.classpath$exclusion_for_range.invoke(classpath.clj:228)
at leiningen.core.classpath$exclusion_for_override.invoke(classpath.clj:238)
at clojure.core$map$fn__4207.invoke(core.clj:2485)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
at clojure.lang.LazySeq.seq(LazySeq.java:60)
at clojure.lang.RT.seq(RT.java:484)
at clojure.core$seq.invoke(core.clj:133)
at leiningen.core.classpath$pedantic_print_overrides.invoke(classpath.clj:266)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.AFn.applyTo(AFn.java:151)
at clojure.core$apply.invoke(core.clj:617)
at clojure.core$memoize$fn__5049.doInvoke(core.clj:5735)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at leiningen.core.classpath$pedantic_do.invoke(classpath.clj:279)
at leiningen.core.classpath$get_dependencies.doInvoke(classpath.clj:300)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:621)
at leiningen.core.classpath$resolve_dependencies.doInvoke(classpath.clj:343)
at clojure.lang.RestFn.invoke(RestFn.java:464)
at leiningen.core.project$load_plugins.invoke(project.clj:524)
at leiningen.core.project$load_plugins.invoke(project.clj:535)
at leiningen.core.project$init_project.invoke(project.clj:670)
at leiningen.core.main$_main$fn__3092.invoke(main.clj:295)
at leiningen.core.main$_main.doInvoke(main.clj:290)
at clojure.lang.RestFn.invoke(RestFn.java:397)
at clojure.lang.Var.invoke(Var.java:411)
at clojure.lang.AFn.applyToHelper(AFn.java:159)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.core$apply.invoke(core.clj:617)
at clojure.main$main_opt.invoke(main.clj:335)
at clojure.main$main.doInvoke(main.clj:440)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:419)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.main.main(main.java:37)
Reference
이 문제에 관하여(진부하다경고 2.3.4에서 NPE 던지기 제외), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://github.com/technomancy/leiningen/issues/1376텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)