deprecated
deprecated

Reputation: 5252

Does lein include a maven executable?

I need to perform a mvn install. From what I know, Leiningen (which I already have) is built on Maven so perhaps I don't need to install Maven separately - or do I?

Upvotes: 2

Views: 176

Answers (2)

NielsK
NielsK

Reputation: 6956

Leiningen uses pomegranate, a Clojure wrapper for Eclipse Aether, a library for working with artifact repositories. Since there were many more products that needed repository access, Aether's functionality was split off from Maven into a separate project, and Maven was changed to make use of Aether.

Pomegranate has an install functionality

install
  "Install the jar-file kwarg using the pom-file kwarg and coordinates kwarg.

:coordinates - [group/name \"version\"]
:jar-file - a file pointing to the jar
:pom-file - a file pointing to the pom
:local-repo - path to the local repository (defaults to ~/.m2/repository)
:transfer-listener - same as provided to resolve-dependencies"

Upvotes: 5

kotarak
kotarak

Reputation: 17309

I believe there is a lein install task.

Upvotes: 1

Related Questions