2

Tip: Import Leiningen Project to IntelliJ (With Dependencies)

 3 years ago
source link: https://blog.jakubholy.net/2012/10/27/tip-import-leiningen-project-to-intellij-with-dependencies/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Tip: Import Leiningen Project to IntelliJ (With Dependencies)

October 26, 2012
To import a Leiningen-based project into IntelliJ with the Clojure plugin, the best way seems to be:
  1. Run lein pom to generate a Maven pom.xml from project.clj
  2. Import the project as a Maven project (File - New Project... - Import project from external model - Maven - browse to the directory - ...)
Versions: Leiningen 2.0.0-preveiw10, IntelliJ 11. You don't need the Leiningen plugin for IntelliJ (it seems to be useful only for running the leiningen tasks, which you can well do from the command line).

If you change the dependencies, regenerate the pom.

(Notice that Leiningen 1 did download all the dependencies into ./lib/ when executing lein deps but that doesn't work anymore in Leiningen 2.)
Tags: clojure

Are you benefitting from my writing? Consider buying me a coffee or supporting my work via GitHub Sponsors. Thank you! You can also book me for a mentoring / pair-programming session via Codementor or (cheaper) email.

Allow me to write to you!

Let's get in touch! I will occasionally send you a short email with a few links to interesting stuff I found and with summaries of my new blog posts. Max 1-2 emails per month. I read and answer to all replies.

Copyright © 2022 Jakub Holý
Powered by Cryogen
Theme by KingMob

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK