Skip to content

Instantly share code, notes, and snippets.

@aeden
Created November 13, 2011 21:24
Show Gist options
  • Save aeden/1362746 to your computer and use it in GitHub Desktop.
Save aeden/1362746 to your computer and use it in GitHub Desktop.

To install a JAR into a local maven repo for use in lein:

mkdir maven_repository
mvn install:install-file -Dfile=dnsjava-2.1.3.jar -DartifactId=dnsjava -Dversion=2.1.3 -DgroupId=dnsjava -Dpackaging=jar -DlocalRepositoryPath=maven_repository

Add to project.clj:

:repositories {"local" ~(str (.toURI (java.io.File. "maven_repository")))}

Get dependencies:

lein deps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment