• Stars
    star
    215
  • Rank 179,855 (Top 4 %)
  • Language
    Clojure
  • Created almost 13 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Work with local Maven repository

lein-localrepo

Leiningen plugin to work with local Maven repository.

Installation

Lein 2 users

The recommended way is to install as a global plugin in ~/.lein/profiles.clj (for Windows users %USERPROFILE%\.lein\profiles.clj):

{:user {:plugins [[lein-localrepo "0.5.4"]]}}

You may also install as a project plugin in project.clj:

:plugins [[lein-localrepo "0.5.4"]]

Lein 1.x users

Either install as a plugin:

$ lein plugin install lein-localrepo "0.3"

Or, include as a dev-dependency:

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

Usage

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 [-r repo-path] [-p pom-file] <filename> <[groupId/]artifactId> <version>

If no POM file is specified, a minimal POM will be automatically generated.

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
$ lein localrepo coords /tmp/foobar-1.0.0-SNAPSHOT.jar | xargs lein localrepo install

List artifacts in local Maven repository:

$ lein localrepo list [-r repo-path] [-s | -f | -d]

Examples:

$ lein localrepo list       # lists all artifacts, all versions
$ lein localrepo list -s    # lists all artifacts with description
$ lein localrepo list -f    # lists all artifacts and filenames
$ lein localrepo list -d    # lists all artifacts with detail

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

Note: As an alternative while this feature is being implemented, removing artifacts is composed of two steps: First, find the path to the artifact with lein classpath | tr ":" "\n" | grep m2.*<YOUR ARTIFACT ID HERE>. Second, delete the directory of that artifact from the group ID or the root of that artifact.

Getting in touch

On Twitter: @kumarshantanu

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

License

Copyright (C) 2011-2017 Shantanu Kumar

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

More Repositories

1

lein-exec

Leiningen plugin for executing Clojure scripts
Clojure
299
star
2

promenade

Take program design oddities in stride with Clojure/ClojureScript
Clojure
106
star
3

lein-sub

Leiningen plugin for executing tasks on sub-projects
Clojure
67
star
4

lein-clr

Leiningen plugin to automate build tasks for ClojureCLR projects
Clojure
59
star
5

clj-liquibase

Clojure wrapper for Liquibase for database change management and migration
Clojure
47
star
6

calfpath

À la carte Ring request matching, routing and reverse-routing for Clojure/Script
Clojure
32
star
7

lein-servlet

A Leiningen 2 plugin to work with servlet-based webapps
Clojure
31
star
8

dime

Dependency Injection Made Easy for Clojure
Clojure
30
star
9

stringer

Fast string operations for Clojure
Clojure
26
star
10

quiddity

S-Expression evaluation library for Clojure and ClojureScript
Clojure
17
star
11

ring-sse-middleware

Ring middleware to stream Server-sent Events
Clojure
16
star
12

clj-dbcp

Clojure wrapper for Apache DBCP to create JDBC connections pools
Clojure
16
star
13

keypin

Key lookup on steroids in Clojure
Clojure
14
star
14

citius

Comparative benchmarking using Criterium
Clojure
13
star
15

espejito

Latency breakup for single-threaded processing
Clojure
11
star
16

cljfreechart

Clojure wrapper for the JFreeChart library
Clojure
10
star
17

basil

A general purpose template library for Clojure and ClojureScript
Clojure
9
star
18

lein-idefiles

Generate IDE files for Leiningen projects
Clojure
9
star
19

lein-cascade

A Leiningen plugin to execute cascading task dependencies
Clojure
8
star
20

asphalt

A Clojure library for JDBC access.
Clojure
7
star
21

lein-viz

Visualize graph and tree data
Clojure
7
star
22

emacs24-config

Emacs 24 config for Clojure and web development using HTML/CSS/JavaScript
Emacs Lisp
6
star
23

cambium

PROJECT HAS MOVED - see https://cambium-clojure.github.io/
Clojure
5
star
24

ring-jdbc-session

JDBC based HTTP session store for Ring (Clojure)
Clojure
3
star
25

lein-docbkx

ABANDONED - Leiningen plugin for rendering Docbook documents (using Docbkx-tools)
Clojure
3
star
26

clj-jdbcutil

DEPRECATED - Clojure JDBC utility functions
Clojure
3
star
27

lein-javac-resources

Copy resources from :java-source-paths to compile path
Clojure
2
star
28

preflex

Resilience, instrumentation and metrics for Clojure
Clojure
2
star
29

hive-0.7.1-hbase-json

DEPRECATED - Hive 0.7.1 HBase Handler with JSON codec
Java
2
star
30

oss-jdbc

Aggregation of Open Source JDBC drivers on public Maven repos
2
star
31

clj-miscutil

Misclleneous utility functions and macros in Clojure
Clojure
2
star
32

coattail

Clojure/Script OpenAPI tooling to afford instant leverage
Clojure
1
star
33

vim7.3-config

Vim 7.3 config for Clojure and Ruby
Vim Script
1
star
34

lein-project-edn

Leiningen plugin to emit project details as EDN
Clojure
1
star
35

sqlrat

SQL template library for Clojure, ClojureScript and ClojureCLR
Clojure
1
star
36

fountain-jdbc

DEPRECATED - Clojure wrapper for SpringJDBC
Clojure
1
star
37

clip-test

A subset of `clojure.test` for Clojure and ClojureScript
Clojure
1
star
38

ringbelt

Utility tool belt for Ring web applications
Clojure
1
star
39

thingy

Data abstraction of 'things' in Clojure
Clojure
1
star
40

ide-files

DEPCRATED. Leiningen template to generate IDE files for existing projects. Superseded by the lein-idefiles plugin.
Clojure
1
star
41

cumulus

Obtain JDBC connection parameters for popular databases
Clojure
1
star