No commit activity in last 3 years
No release in over 3 years
Resolve Maven dependencies using maven-dependency-plugin
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.5
>= 0
 Project Readme

maven_depenceny

A Ruby gem to download dependent jars using maven-dependency-plugin.

Requires mvn executable.

Installation

Add this line to your application's Gemfile:

gem 'maven_dependency'

And then execute:

$ bundle

Or install it yourself as:

$ gem install maven_dependency

Usage

Ruby

jars = MavenDependency.resolve('redis.clients/jedis@2.5.1')
jars = MavenDependency.resolve('redis.clients/jedis@2.5.1', 'org.clojure/clojure@1.5.1')

MavenDependency.resolve(
    'org.apache.hadoop/hadoop-common@2.3.0-cdh5.0.0',
    :repositories => [{
      :url => 'https://repository.cloudera.com/artifactory/cloudera-repos'
    }], :verbose => true).each do |jar|
  # In JRuby
  require jar
end

maven_dependency_fetch_jars executable

maven_dependency_fetch_jars redis.clients/jedis@2.5.1 org.clojure/clojure@1.5.1