Is it possible to use mvn clojure:repl without modifying the pom?

28 views
Skip to first unread message

Jakub Holy

unread,
Nov 9, 2012, 9:50:08 AM11/9/12
to clojure-ma...@googlegroups.com
Hi,

I would like to experiment with some Java code in a Maven project interactively and the Clojure REPL seems as a great way. However it seems to require me to modify the pom.xml and add an explicit dependency on Clojure. Is there some way around that, so that I could use clojure:repl on pure Java Maven projects? (I managed to get the plugin working without adding it to the pom by adding its pluginGroup to my settings.xml but am stuck on ClassNotFoundException: clojure.main.)

Thank you!

Mark Derricutt

unread,
Nov 9, 2012, 4:16:19 PM11/9/12
to clojure-ma...@googlegroups.com
Hey there Jakub,

I don't include any dependency on clojure as I want to keep the plugin clojure-version agnostic, makes it more flexible in the long run.

For your problem - you could add a <profile> to your ~/.m2/settings.xml which declares the plugin, and a clojure dependency outside of your projects, then invoke maven like:

mvn -Pjakubsclojureprofile clojure:repl

Hope this helps...
Reply all
Reply to author
Forward
0 new messages