From 4f7369d33dd8e4ed918cb29c1260b9df6b5690d4 Mon Sep 17 00:00:00 2001 From: Amit Nithian Date: Mon, 13 Feb 2012 19:35:56 -0800 Subject: [PATCH] Added documentation about the maven integration --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 8a5f1a6e9c0..51ac6246acc 100644 --- a/README.md +++ b/README.md @@ -27,3 +27,14 @@ See [UPGRADING](https://github.com/carlhuda/bundler/blob/master/UPGRADING.md). ### Other questions Feel free to chat with the Bundler core team (and many other users) on IRC in the [#bundler](irc://irc.freenode.net/bundler) channel on Freenode, or via email on the [Bundler mailing list](http://groups.google.com/group/ruby-bundler). + +### Maven Integration (JRuby only) +This version of bundler allows maven dependencies to be included alongside your other Ruby dependencies opening up a whole new world of possibilities! There are two ways to add your maven dependencies: +1) mvn "repo URL (or 'default' for the default repo URL)" do + gem "mvn::", "version number" + end +2) gem "mvn::", "version number", :mvn=>"repo URL (or 'default' for the default repo URL)" + +This integration will download the right jar using maven into your *maven* repo location and simply write the necessary ruby files to require the jars from the +right location in the maven repository. This allows for maven repos and gem repos to live side by side without duplication of binaries and ensure that dependencies +are resolved properly as maven does that automatically. \ No newline at end of file