Build Status

Naether is a Java Dependency Resolver using Maven's Aether that can be used by Ruby or Java.

RDoc | JavaDoc | Wiki



JRuby is natively supported. Vanilla Ruby uses Rjb to proxy over JNI.

gem install naether

The jar dependencies for Naether will automatically be downloaded when the gem installs.

Custom Maven Repo

You can override the default Maven Repo used in bootstraping Naether by setting the NAETHER_MIRROR environment variable.

NAETHER_MIRROR=https://my.local.repo/m2 gem install naether

The NAETHER_MIRROR environment is also appended to the remote repositories used when resolving dependences.



May have to add the Sonatype Repo if the sync to Maven Central is slow.

    <name>Sonatype Repository</name>



All of the Naether dependencies are loaded via a Custom ClassLoader.


Naether jar dependences must be loaded for Naether to work. This is easily done with the bootstrap helper


Resolving Dependencies

require 'rubygems'
require 'naether'

naether = Naether.create
naether.dependencies = [ "ch.qos.logback:logback-classic:jar:0.9.29", "junit:junit:jar:4.8.2" ]

puts naether.dependencies_notation

Will output

 "org.slf4j:slf4j-api:jar:1.6.1" ]

Additional documentation on Resolving Dependencies


Resolving Dependencies

import com.tobedevoured.naether.api.Naether;
import com.tobedevoured.naether.impl.NaetherImpl;

Naether naether = new NaetherImpl();
naether.addDependency( "ch.qos.logback:logback-classic:jar:0.9.29" );
naether.addDependency( "junit:junit:jar:4.8.2" );
System.out.println( naether.getDependenciesNotation().toString() );

Will output:

 "org.slf4j:slf4j-api:jar:1.6.1" ]

Additional documentation on Resolving Dependencies


Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.