Created
November 13, 2009 11:40
-
-
Save ato/233772 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn make-repo | |
"Does the crazy factory voodoo necessary to get an ArtifactRepository object." | |
[id url] | |
(-> (.lookup container ArtifactRepositoryFactory/ROLE) | |
(.createDeploymentArtifactRepository | |
id url (.lookup container ArtifactRepositoryLayout/ROLE "default") true))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment