Most build technologies can use libraries found in the local directory. I would suggest using ivy for the command line to populate this at the beginning of your build:
java -jar ivy.jar -ivy ivy.xml -settings ivysettings.xml -retrieve "lib/[conf]/[artifact].[ext]"
Your dependencies are listed in a standard ivy file called ivy.xml . The protocol, location and location of the remote storage are described in ivysettings.xml
The advantage of this approach (as opposed to switching to Gradle, etc.) is that you are not trying to replace an existing build tool. Ivy is exclusively concerned with dependency management.
Mark o'connor
source share