technomancy/leiningen — Issue #362: Lein pom throws exception when :parent is set
Author: deterb
Created: 2012-01-06 17:49:36+00:00
State: open

It looks like the method for setting the parent project's model encoding disappeared on one of the earlier updates.

Stack trace below:

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.maven.model.Parent.setModelEncoding(Ljava/lang/String
;)V (NO_SOURCE_FILE:0)
at clojure.lang.Compiler.eval(Compiler.java:5440)
at clojure.lang.Compiler.eval(Compiler.java:5391)
at clojure.core$eval.invoke(core.clj:2382)
at clojure.main$eval_opt.invoke(main.clj:235)
at clojure.main$initialize.invoke(main.clj:254)
at clojure.main$script_opt.invoke(main.clj:270)
at clojure.main$main.doInvoke(main.clj:354)
at clojure.lang.RestFn.invoke(RestFn.java:457)
at clojure.lang.Var.invoke(Var.java:377)
at clojure.lang.AFn.applyToHelper(AFn.java:172)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.main.main(main.java:37)
Caused by: java.lang.NoSuchMethodError: org.apache.maven.model.Parent.setModelEncoding(Ljava/lang/String;)V
at leiningen.util.maven$make_parent.doInvoke(maven.clj:135)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:540)
at leiningen.util.maven$make_model.invoke(maven.clj:239)
at leiningen.pom$make_pom.invoke(pom.clj:35)
at leiningen.pom$pom.invoke(pom.clj:53)
at leiningen.pom$pom.invoke(pom.clj:56)
at leiningen.pom$pom.invoke(pom.clj:57)
at clojure.lang.Var.invoke(Var.java:365)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.core$apply.invoke(core.clj:542)
at leiningen.core$apply_task.invoke(core.clj:259)
at leiningen.core$_main.doInvoke(core.clj:325)
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.core$apply.invoke(core.clj:542)
at leiningen.core$_main.invoke(core.clj:328)
at user$eval42.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:5424)
... 11 more