Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Work with local Maven repository

tag: v0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

lein-localrepo

Leiningen plugin to work with local Maven repository.

Usage

Either install as a plugin:

$ lein plugin install lein-localrepo "0.1"

Or, include as a dev-dependency:

:dev-dependencies [lein-localrepo "0.1"]

Guess Leiningen (Maven) coordinates of a file

$ lein localrepo coords <filename>

Example:

$ lein localrepo coords foo-bar-1.0.6.jar

Output:

foo-bar-1.0.6.jar foo-bar/foo-bar 1.0.6

Install artifacts to local Maven repository

$ lein localrepo install <filename> <[groupId/]artifactId> <version>

Examples:

$ lein localrepo install foo-1.0.6.jar com.example/foo 1.0.6
$ lein localrepo install foomatic-1.3.9.jar foomatic 1.3.9

List artifacts in local Maven repository (Not Yet Implemented):

$ lein localrepo list [<[groupId/]artifactId> [<version>]]

Examples:

$ lein localrepo list                     # lists all artifacts, all versions
$ lein localrepo list com.example/foo     # lists all versions
$ lein localrepo list foomatic            # lists all versions
$ lein localrepo list com.example/foo 1.3 # lists only specified version

Remove artifacts from local Maven repository (Not Yet Implemented):

$ lein localrepo remove <[groupId/]artifactId> [<version>]

Examples:

$ lein localrepo remove com.example/foo        # removes all versions
$ lein localrepo remove foomatic               # removes all versions
$ lein localrepo remove com.example/foo 1.0.3  # removes only specified version

Getting in touch

On Twitter: @kumarshantanu

On Leiningen mailing list: http://groups.google.com/group/leiningen

License

Copyright (C) 2011 Shantanu Kumar

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.