Apache Ivy

Apache Ivy is a popular dependency manager focusing on flexibility and simplicity.
Home site - http://ant.apache.org/ivy
Quick start - http://ant.apache.org/ivy/history/latest-milestone/tutorial/start.html
Repository - http://mvnrepository.com/

Example

1. Download and place ivy-xxx.jar to the ant home lib folder: /usr/share/ant/lib/ivy-2.2.0.jar.

cd $ANT_HOME/lib
wget http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar

2. Modify your project build script:
build.xml

<project name="arcman" default="main" xmlns:ivy="antlib:org.apache.ivy.ant">
        <ivy:retrieve file="./ivy.xml" sync="true"/>
        ...
	<property name="junit.jar" location="${lib.dir}/junit-4.8.2.jar"/>
        ...
	<target name="test" depends="compile.test">
		<junit printsummary="yes" haltonerror="yes" haltonfailure="yes"	fork="yes">
			<formatter type="plain" usefile="false"/>
			<test name="promauto.arcman.VarsTest"/>
			<classpath>
				<pathelement location="${java.build.dir}"/>
				<pathelement location="${test.build.dir}"/>
				<pathelement location="${junit.jar}"/>
			</classpath>
		</junit>
	</target>
</project>

3. Create ivy dependencies script in folder with build.xml:
ivy.xml

<ivy-module version="2.0">
    <info organisation="promauto" module="sampling-ivy"/>
    <dependencies>
	<dependency org="junit" name="junit" rev="4.8.2"/>
	<dependency org="net.sf.squirrel-sql.thirdparty-non-maven" name="jaybird" rev="2.1.6"/>
	<dependency org="log4j" name="log4j" rev="1.2.16"/>
    </dependencies>
</ivy-module>

4. Start building. All the needed libraries will mysteriously appear in ./lib folder.