     ;; generated and installed in local repo
     (if (not= "pom" (.getPackaging model))
       (add-metadata artifact (file (pom project))))
+    (install-shell-wrapper (JarFile. jarfile))
     (.install installer jarfile artifact local-repo)))
 

(ns leiningen.install
  "Install the project and its dependencies in your local repository."
  (:use [leiningen.jar :only [jar]]
        [leiningen.pom :only [pom make-model]]
        [clojure.java.io :only [file]])
  (:import [org.apache.maven.artifact.installer ArtifactInstaller]
           [org.apache.maven.project.artifact ProjectArtifactMetadata]
           [org.apache.maven.settings MavenSettingsBuilder]

           [org.apache.maven.artifact.factory ArtifactFactory]
           [org.apache.maven.artifact.repository.layout
            ArtifactRepositoryLayout]
           [org.codehaus.plexus.embed Embedder]
           [java.util.jar JarFile]))

;; Welcome to the absurdist self-parodying world of Dependency Injection
(def container (.getContainer (doto (Embedder.) (.start))))
