technomancy/leiningen — Issue #350: lein deploy runs into NPE
Author: ath
Created: 2011-12-12 10:51:47+00:00
State: open

I tried to lein deploy (Leiningen 1.6.2, Windows 7, 64 Bit) into my local Artifactory repo, but this results in an NPE. In my %home%\\.lein\init.clj I configured the urls (https) for snapshots and releases with my username and password. In my project.clj file I specified those two repos under :deploy-repositories. I get the following output:

M:\project>lein deploy
Copying 1 file to M:\project\lib
Compiling my.namespace.project.foo
Compilation succeeded.
Created M:\project/project-0.0.1-SNAPSHOT.jar
Wrote pom.xml
Exception in thread "main" java.lang.NullPointerException (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.NullPointerException
at org.apache.maven.artifact.ant.AbstractArtifactTask.getContainer(AbstractArtifactTask.java:482)
at org.apache.maven.artifact.ant.AbstractArtifactTask.getProfileManager(AbstractArtifactTask.java:709)
at org.apache.maven.artifact.ant.Pom.getActivatedProfiles(Pom.java:470)
at org.apache.maven.artifact.ant.Pom.createProjectBuilderConfig(Pom.java:501)
at org.apache.maven.artifact.ant.Pom.initialiseMavenProject(Pom.java:208)
at org.apache.maven.artifact.ant.AbstractArtifactTask.initializePom(AbstractArtifactTask.java:527)
at org.apache.maven.artifact.ant.InstallDeployTaskSupport.initializePom(InstallDeployTaskSupport.java:59)
at org.apache.maven.artifact.ant.DeployTask.doExecute(DeployTask.java:98)
at org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractArtifactTask.java:751)
at leiningen.deploy$deploy.invoke(deploy.clj:48)
at leiningen.deploy$deploy.invoke(deploy.clj:59)
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:255)
at leiningen.core$_main.doInvoke(core.clj:321)
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:324)
at user$eval294.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:5424)
... 11 more