How to use the maven plugin from leiningen

The specific plugin I want to use is jruby-maven-plugin , so I can easily use the compass in the clojure project.

If maven plugins cannot be used, what would be the best strategy for using a ruby ​​gem in a clojure project?

+5
source share
2 answers

The following two projects provide support for the ruby ​​gem. lein-ruby clogems

The clogems project has nothing to do with documentation, so you are probably on your own.

lein-ruby provides some documentation on github on it . On the github page for lane ruby.

Using

Leiningen:

  • lein ruby CMD [ARGS...] - Ruby

jruby-complete .

( leiningen.ruby.bundler ), :

  • augment lein deps , Gemfile vendor/gems

  • vendor/gems

  • vendor/gems jar

lein-ruby , .clj:

  • :ruby-version - Ruby lein ruby: "1.8" "1.9" ( )

  • :ruby-gem-dir - , , ( - vendor/gems)

+1

, Mavern. Leiningen GitHub, , :

:dependencies [[org.clojure/clojure "1.8.0"]
               [clj-http "2.0.0"]]

Leiningen clj-http , .

...

Leiningen JVM. . Leiningen : clojars.org Maven Central.

, : repositories project.clj. . sample.project.clj , .

0

All Articles