(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)))
Used in 0 other vars
Comments top
No comments for install. Log in to add a comment.