(defn make-local-repo []
(let [path (.getLocalRepository (make-settings))
url (if (.startsWith path "file:") path (str "file://" path))]
(-> (.lookup container ArtifactRepositoryFactory/ROLE)
(.createDeploymentArtifactRepository
"local" url (.lookup container ArtifactRepositoryLayout/ROLE "default")
true))))
Comments top
No comments for make-local-repo. Log in to add a comment.