1.2.0 permalink Arrow_down_16x16
  • (install project)
Install the project and its dependencies in your local repository.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source leiningen/install.clj:41 top

(defn install
  "Install the project and its dependencies in your local repository."
  [project]
  (let [jarfile (file (jar project))
        model (make-model project)
        artifact (make-artifact model)
        installer (.lookup container ArtifactInstaller/ROLE)
        local-repo (make-local-repo)]
    ;; for packaging other than "pom" there should be "pom.xml"
    ;; generated and installed in local repo
    (if (not= "pom" (.getPackaging model))
      (add-metadata artifact (file (pom project))))
    (.install installer jarfile artifact local-repo)))
Vars in leiningen.install/install: defn let not=
Used in 0 other vars

Comments top

No comments for install. Log in to add a comment.