0

I've built a clojure library, it's on my local machine and now I want to test as it were a third-party library as well as testing it internally by tests.

How can I install the library locally by lein the same way I can install libraries normally by "project.clj" -> ":dependencies [[....]]"

1

1 Answer 1

1

lein install should install it to your ~/.m2 directory to give you exactly what you want.

Sign up to request clarification or add additional context in comments.

5 Comments

and how can I update my library later? will "lein install" overwrite it?
the normal practice is to use a -SNAPSHOT version when you intend to overwrite it later, so as long as you're doing that it should be fine.
and how can I update my library later? will "lein install" overwrite it?
It said "Installed jar and pom into local repo." but it doesn't exist neither in .m2 no in .m2/repository/ Why?
I've never had that problem, so I have no idea.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.